Open Source: Unique Device ID Generator For UDID Alternative

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.

Learn how to quickly build apps using Phonegap and Dreamweaver from the start through a series of videos and example projects.  Over 7 hours of video so far explaining what you need to know including maps, the camera api, and more.
Read more...
DeliciousTwitterFacebookLinkedInEmail

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can send a Tweet to @maniacdev on Twitter or submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Click on a tab to select how you'd like to leave your comment

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>