As has been reported on many technology news sites (must be a slow weekend!) the [device uniqueidentifier] method has been marked for deprecation.
I’ve come across a library that utilizes the device’s MAC Address along with the App Bundle Identifier to generate a unique ID in your applications that can be used as a UDID replacement.
Keep in mind that unlike the UDID this number will be different for every app.
You simply need to import the included NSString and UIDevice categories and call:
[[UIDevice currentDevice] uniqueDeviceIdentifier]
In order to grab the generated device identifier.
Thanks to George Kitz for the library. You can find it on Github here:
https://github.com/gekitz/UIDevice-with-UniqueIdentifier-for-iOS-5
While you probably weren’t going crazy over this as sites like TechCrunch were trying to make their readers believe – this little library should save you the time of trying to figure out how to generate a unique ID for each device yourself.
©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.
.