I want unique identifier string which detect iPhone device (just like UDID)?

Mahesh picture Mahesh · May 21, 2013 · Viewed 12.2k times · Source

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.

Answer

Inoka picture Inoka · May 21, 2013

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