应用更新后,iPhone UUID会发生变化吗? [英] iPhone UUID change when App Updated?
问题描述
我使用iphone UUID检查用户的设备是否唯一。
I use iphone UUID for checking user's device is unique.
我已经知道重新安装应用时会更改UUID。
I already know UUID will be changed when reinstall app.
但是,我有一个问题。
然后,当应用更新时,我的应用程序的UUID将被更改?
But, I have a question. Then, when app updated, UUID for my app will be changed?
如果更新应用程序时UUID已更改,我在哪里可以永久保存iphone中的UUID(或相同的效果)?
If UUID changed when app updated, where can I save UUID in iphone permanently(or same effect)?
推荐答案
将创建的UUID保存到应用程序的用户首选项中,应该备份它们 - 如果它们还原来自备份的应用程序您将获得UUID。
Save out your created UUID into user preferences for the app, which should be backed up - if they restore the app from a backup you'll get back the UUID.
如果您想更加确定可以获得相同的UUID,请将生成的UUID保存到钥匙串 - 即使你删除了一个应用程序,钥匙串也保持不变(不确定这是否永远保证,但这是效果)。
If you want to be even more sure you can get back the same UUID, save the generated UUID into the keychain - the keychain is kept intact even after you delete an app (not sure if that's guaranteed forever but it is the effect).
这篇关于应用更新后,iPhone UUID会发生变化吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!