ios – 在某些情况下UUID是否会发生变化

ios – 在某些情况下UUID是否会发生变化,第1张

概述我正在使用用户的设备UUID来获取唯一的设备. NSString *currentUUIDString = [[[UIDevice currentDevice] identifierForVendor] UUIDString]; 我知道如果应用程序被删除/重新安装(Apple document),UUID会被更改. 但UUID是否因以下情况而改变? >如果应用已更新. (发现same quest 我正在使用用户的设备UUID来获取唯一的设备.
Nsstring  *currentUUIDString = [[[UIDevice currentDevice] IDentifIErForvendor] UUIDString];

我知道如果应用程序被删除/重新安装(Apple document),UUID会被更改.

但UUID是否因以下情况而改变?

>如果应用已更新. (发现same question)
>如果设备 *** 作系统版本已升级.
>如果做iCloud / iTunes备份和恢复.
>如果设备已重置. (在这种情况下,我认为UUID Keychain存储将无法正常工作.我想,钥匙串存储也会被清除.)

编辑:

不,这不重复,question与如何唯一地识别设备有关,我已经遵循了.我知道我们可以使用UUID唯一地识别设备.但我担心的是UUID可能会改变的频率是多少,如果改变了,那么它可以改变的场景是什么.

解决方法 是

The device’s IDentifIErForvendor is an excellent way of IDentifying the device. It will change if the app (and all apps from the same developer) is removed from the device and reinstalled. It does not depend on wifi/Bluetooth connections. With the exception of a BUG last year,it does not change with operating systems. …… You Could also write your own UUID to the keychain – that survives delete/reinstall of the app…You Could also write something to the user’s iCloud key-value file. That would be user-specific rather than device-specific. It also survives delete/reinstall. I think that is what you want.

总结

以上是内存溢出为你收集整理的ios – 在某些情况下UUID是否会发生变化全部内容,希望文章能够帮你解决ios – 在某些情况下UUID是否会发生变化所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/web/1104931.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存