3

I would like my app users to be able to vote once. Meaning I need their UDID for that matter.

Since I won't be nagging about registering to my app I find it necessary to use some identification for that device.

I have heard that Apple have deprecated the use of device UDID.

How can I accomplish this?

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Ted
  • 3,805
  • 14
  • 56
  • 98
  • 1
    If you meant `UDID` take a look at [this](http://stackoverflow.com/questions/6993325/uidevice-uniqueidentifier-deprecated-what-to-do-now/7873609#7873609) – Mat Jun 10 '12 at 09:37
  • It's also rumoured that Apple will announce a UDID replacement as part of iOS 6 in the coming week at WWDC 2012. – theTRON Jun 10 '12 at 11:40
  • There was no UDID replacement, you will have to roll your own. – Nils Munch Oct 23 '12 at 21:19

4 Answers4

7

As many have said, the UDID block is not the end of the world, since apple have provided ways of still binding to device-specific variables.

I would read the blog entry Thriving Amid An Explosion of UDID Alternatives and go through what you will need for your app in particular.

Nils Munch
  • 8,805
  • 11
  • 51
  • 103
7

I would use OpenUDID Its very simple to use You would do the following

#include "OpenUDID.h"
NSString* openUDID = [OpenUDID value];

Grab it from here https://github.com/ylechelle/OpenUDID/

Omar Abdelhafith
  • 21,163
  • 5
  • 52
  • 56
  • Sorry for the so late response. It's amazing how many things there are on a project that easily distract you. Thanks! – Ted Jul 04 '12 at 10:50
3

use this methode

+ (NSString *)newUUID
{
CFUUIDRef theUUID = CFUUIDCreate(NULL);
CFStringRef string = CFUUIDCreateString(NULL, theUUID);
CFRelease(theUUID);
return (NSString *)string;
}
iArezki
  • 1,273
  • 2
  • 17
  • 29
  • 1
    This is not exactly going to work very well, what stop's a user from just uninstalling and reinstalling the app and getting a new UUID everytime? – Paul.s Jun 10 '12 at 10:18
  • Well, you could write this down to your keychain – Ted Jul 04 '12 at 08:25
0

If you have time until (probably) the WWDC keynote tomorrow, this could be interesting for you: The Wall Street Journal: Apple to Release New Tracking Tool for Apps

Stefan
  • 1,347
  • 2
  • 16
  • 38