For an iPhone app that submits images to a server I need somehow to tie all the images from a particular phone together. With every submit I'd like to send some unique phone id. Looked at
[[UIDevice mainDevice] uniqueIdentifier]
and [[NSUserDefaults standardDefaults] stringForKey:@"SBFormattedPhoneNumber"]
but getting errors in the simulator.
Is there an Apple sanctioned way of doing this?
A unique device identifier (UDID) is a 40-character string assigned to certain Apple devices including the iPhone, iPad, and iPod Touch. Each UDID character is a numeral or a letter of the alphabet. Using the UDID, third parties, particularly app vendors, can track subscriber behavior.
Your UDID can be found in Finder. In the Finder sidebar, choose your iPhone, then click area in the header just under your phone's name until you can see the UDID. Then, right click and choose Copy UDID.
What is a “unique identifier” on a job application? Usually, “unique identifier” on a job application refers to the last four digits of your Social Security number. Sometimes, it includes your zip code. Alternately, it can mean your employee number.
Search the AccessGUDID Database AccessGUDID is a searchable database of device identification information, such as the device identifier on the label, device name, company name, MR safety status, and premarket submission numbers.
What errors are you getting? [[UIDevice currentDevice] uniqueIdentifier]
(edited to fix API, thanks Martin!) is the officially recommended way of doing this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With