Changing iPhone UUID when updating an application?

I use iphone UUID to verify the user device is unique.

I already know that the UUID will be changed when reinstalling the application.

But I have a question. Then, when the application is updated, will the UUID for my application be changed?

If the UUID has changed when updating the application, where can I save the UUID in iphone permanently (or the same effect)?

+4
source share
2 answers

Save the created UUID in the user settings for the application that should be copied - if they restore the application from the backup, you will return the UUID.

If you want to be more confident, you can return the same UUID, save the generated UUID in the key chain - the keychain will remain untouched even after the application is uninstalled (not sure if this is guaranteed forever, but this is an effect).

+1
source

The UDID does not change, but it is deprecated. Device ID may change. You can use the MAC address if Wi-Fi is turned on, which is largely given.

-2
source

Source: https://habr.com/ru/post/989948/


All Articles