I want unique identifier string for iPhone devices instead of UDID
and MAC
.
1. Get UDID
and MAC
are deprecated by apple.
2. We can use UUID
but it will get change after reinstalling app or delete app.
I want any unique value of device which is remain same after app reinstall OR delete OR upgrade iOS version.
What you can do is get a unique identifier using [[UIDevice currentDevice] identifierForVendor]
or any other unique identifier generator. After that, you should store that value on keychain using KeychainItemWrapper
and use. Once you store a value on the keychain it'll not remove even after you delete and reinstall the app.
Here is a guide for keychain access - Link