Search code examples
iosobjective-cuuidudiddevicetoken

How to Get Unique Identity From iOS Device?


i am NewBie in iOS Development and i Know that this Question are asked many Times. i am do R&D on it but Not Get my Answer. I want to Get any Unique identity from devise. i know that there are many Option like as

1.UDID
2.UUID

But From iOS 7 Apple not accept app that Fetch UDID From Devise so that Option is Block For me. and Now Second Option is UUID But From my R&D Result UUID will be Changed Every time when User Completely Uninstall application and Reinstall it. So, I Get Different UUID for Same Device. and Another Option is like as

Device Token

Here I want to Know that for Push Notification Service Device Token are remaining same for Every time When User Uninstall app and Reinstall it. if Device token are Different for Every Uninstall and Reinstallation Process then please Give me Any Solution for Unique Identification that are Remaining same for every time.

thanks in advance.


Solution

  • You can save UUID in the keychain, so even uninstall and reinstall app, you still can get it back.