Get unique iPad / iPhone information from your app?

How do you get unique identification information from iPhone / iPad in the app? For example, I want my app to send support emails to my site for users who have problems and I need to uniquely identify the phone number / device ID it is running on. Is it possible, forbidden?

+2


a source to share


2 answers


The unique identifier of the specific iPhone you are working on:

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

      



More information on CFUUID

+1


a source


Getting the user's phone number is discussed here:



Get your own phone number programmatically in iOS

+1


a source







All Articles