UIDevice uniqueIdentifier is already deprecated in iOS5, can I still use this? I’m using it for Remote Notification by following this tutorial, and the current alternative for uniqueIdentifier does not satisfy what I wanted.
UIDevice uniqueIdentifier is already deprecated in iOS5, can I still use this? I’m using
Share
The device ID is deprecated for a reason. You should not associate user-information with a particular device, because the device could be sold or replaced by the user and you may leak information to other parties.
If you need a unique value, generate a GUID the first time your application is launched. Save this to
NSUserDefaultsso it is backed up during a sync, and use this GUID in place of the device id.