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
  • 42,547
  • 47
  • 147
  • 224

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,106
  • 2
  • 27
  • 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,148
  • 2
  • 21
  • 34