1

Possible Duplicate:
iOS hardware parameters for unique id generation

I need to identify uniquely the IOS device instead of requiring sign-up in order to uniquely identify the consumers of my app, this data will be send to our servers by consuming WCF service actions.

How can I identify that?

PS. IP is not an option

Community
  • 1
  • 1
RollRoll
  • 8,133
  • 20
  • 76
  • 135

2 Answers2

0

UDID ([UIDevice currentDevice].uniqueIdentifier;) is deprecated, so i can't recommend you to use that...

What we do in our app is we generate a UUID and store it on the keychain, that together with a customer ID makes every "Profile" unique...

CFUUIDRef uuidObj = CFUUIDCreate(nil);//create the new UUID
NSString *uuidString = (NSString*)CFUUIDCreateString(nil, uuidObj);

P.S. Beware that apple does not like you to tie a user to the device, so better be prepared to explain why you need this.

Frank
  • 16,476
  • 7
  • 38
  • 51
0

If you're going to be only supporting iOS6 you can use the UIDevice identifierForVendor.

rooster117
  • 5,502
  • 1
  • 21
  • 19