开发者

How to get iOS's unique identifier from app?

开发者 https://www.devze.com 2023-03-10 10:43 出处:网络
I have checked online that getting IMEI must use private methods and thus violate the agreement and might be rejected. What I need is no开发者_运维百科t the IMEI number, but any unique identifier of t

I have checked online that getting IMEI must use private methods and thus violate the agreement and might be rejected. What I need is no开发者_运维百科t the IMEI number, but any unique identifier of the phone, it can be meaning less or do


[[UIDevice currentDevice] uniqueIdentifier]


As of iOS 5.0 this property is deprecated and Apple advises that you create your own unique app id:

Do not use the uniqueIdentifier property. To create a unique identifier specific to your app, you can call the CFUUIDCreate function to create a UUID, and write it to the defaults database using the NSUserDefaults class.

0

精彩评论

暂无评论...
验证码 换一张
取 消