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?

MikeN
  • 45,039
  • 49
  • 151
  • 227

2 Answers2

1

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

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

More info on CFUUID

John Wang
  • 6,136
  • 2
  • 28
  • 23
1

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

Programmatically get own phone number in iOS

Community
  • 1
  • 1
Joost Schuur
  • 4,417
  • 2
  • 24
  • 39