简体   繁体   English

在iCloud备份还原之间,UIDevice上的“ identifierForVendor”是否保持不变?

[英]Does “identifierForVendor” on `UIDevice` stay the same between iCloud backup restores?

We're trying to solve an issue where we need to detect when a "device" from the perspective from our app is actually a different one. 我们正在尝试解决一个问题,我们需要从应用程序的角度检测“设备”何时实际上是不同的设备。

I was wondering if this was persisted to iCloud and iTunes backups, or if it is re-generated on device change? 我想知道这是否持久保存到iCloud和iTunes备份中,还是在设备更改时重新生成?

identifierForVendor only changed when you Uninstall the application. 仅在Uninstall应用程序时, identifierForVendor才更改。 once you install application then identifierForVendor will be same whatever task you perform like you update your application or you backup it to icloud or restore it, until you delete it. 一旦安装了应用程序,则无论执行什么任务(无论您update your application还是将其备份到icloud或还原它), identifierForVendor都将相同,直到将其删除。 If you delete and reinstall the application then `identifierForVendor will be different! 如果您删除并重新安装该应用程序,则“ identifierForVendor”将有所不同!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM