ios - 如何获取iPhone的唯一ID?
天蓬老师
天蓬老师 2017-04-17 17:38:16
0
9
738

id满足如下条件:

  1. 每台iphone id唯一;

  2. 该id不随APP卸载重装发生变化;

  3. 恢复出厂设置后,app仍能获取到之前相同的id。

ps:我知道有vendor id和advertising Id,问题是如何满足条件3
pps:之前把第一次生成的id存储在keychain中,不过恢复出厂后会丢失...

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(9)
黄舟

There is no solution to this problem now. Apple prohibits identification of devices
UUID is basically enough

迷茫

i Apple doesn’t want you to get it and prohibits you from labeling your phone. You can only use OpenUDID or UUID+keychain, but neither is a perfect solution and you must make a choice

洪涛

3 seems to be unable to satisfy

左手右手慢动作

I studied this problem one day before
The final answer is that there is no solution
My final solution is
I work on smart hardware
I asked the hardware side to tell me the unique ID of the hardware

Peter_Zhu

You can get the deviceId of the device, this is accurate

阿神

Someone has already answered it. If there is no solution, you can only use UUID

巴扎黑

Apple is awesome, no solution

Peter_Zhu

There is a UDID framework that can generate a unique identifier by yourself, but it is not a real UDID, just a simple unique identifier. Search it yourself.

伊谢尔伦

OpenUUID

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template