Is there a unique ID like the mac address for each iPhone / iPod Touch?
Do I have to ask the user for permissions to transmit such a unique id?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes,
you can get it using UIDevice’s uniqueIdentifier property:Edit: uniqueIdentifier property is deprecated in iOS5 and you should not use it now. As an alternative you can generate your own unique ID (for example check this questions).
Also in iOS6 Apple added 2 new methods to get unique identifier (as an instance of NSUUID class):
UIDevice -identifierForVendor:
ASIdentifierManager -advertisingIdentifier: