Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unique identifier for an iPhone app

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?

like image 330
Martin Redmond Avatar asked Oct 22 '08 21:10

Martin Redmond


People also ask

What is a unique device identifier iPhone?

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.

Where is the unique device identifier on iPhone?

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 Application unique identifier?

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.

Where is the unique device identifier?

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.


1 Answers

What errors are you getting? [[UIDevice currentDevice] uniqueIdentifier] (edited to fix API, thanks Martin!) is the officially recommended way of doing this.

like image 162
Ben Gottlieb Avatar answered Oct 06 '22 09:10

Ben Gottlieb