-1

I was told to use either GUID/UUID or get the mac address to uniquely identify my app in the user device.

Also I read apps using both approaches are being rejected by apple once uploaded to apple store.

The questions is..., what is the current way that Apple would approve?

Alexis Wilke
  • 19,179
  • 10
  • 84
  • 156
RollRoll
  • 8,133
  • 20
  • 76
  • 135
  • 1
    Apple approves e. g. the use of OpenUUID (you can even store it in the keychain to make it persist between app reinstalls). Jesus is much more permissive: you can use anything until it doesn't violate the Ten Commandments. –  Jun 23 '13 at 21:40
  • possible duplicate of [UIDevice uniqueIdentifier Deprecated - What To Do Now?](http://stackoverflow.com/questions/6993325/uidevice-uniqueidentifier-deprecated-what-to-do-now) – rmaddy Jun 23 '13 at 21:48
  • check the date, the post is from 2011, it is not duplicated – RollRoll Jun 23 '13 at 21:52
  • @ThePoet Check the accepted answer. It has been updated quite recently. It is relevant. – rmaddy Jun 23 '13 at 21:54

1 Answers1

3

Check this article: http://www.doubleencore.com/2013/04/unique-identifiers/

You probably want to use Advertiser Identifier:

NSString *adId = [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString];

Or Identifier for Vendor:

NSString *idfv = [[[UIDevice currentDevice] identifierForVendor] UUIDString];

Also, if you are planning to use OpenUDID or ODIN1 (or other solution based on MAC address), you may want to see the iOS 7 release notes and API diffs.

Marcelo
  • 9,916
  • 3
  • 43
  • 52