tags:

views:

190

answers:

2

How do you get the unique identifying information from an iPhone/iPad within an app? For instance, I want my app to send support emails to my website for users who have problems and I need to uniquely identify the phone number/id of the device it is running on. Is this possible, forbidden?

+1  A: 

The unique identifier for the particular iPhone you're running on:

NSString *uniqueIdentifier = [[UIDevice currentDevice] uniqueIdentifier];

More info on CFUUID

John Wang
UDID is not the same thing as UUID...
KennyTM
+1  A: 

There's some discussion about getting the user's phone number here:

http://stackoverflow.com/questions/193182/programmatically-get-own-phone-number-in-iphone-os

Joost Schuur