Gowtham R Gowtham R - 6 months ago 27
iOS Question

How to get unique id in iOS device?

I have used mac address to identify iOS devices in server side. When run my application with iOS 7 unable to retrieve the correct mac address. Alternately i used

NSUUID *oNSUUID = [[UIDevice currentDevice] identifierForVendor];
[strApplicationUUID setString:[oNSUUID UUIDString]];


property. But this value also changed after every new installation of application. Now i want detect particular device in server side? How can i get some unique id per device in iOS?

Answer

You can no longer get a unique ID per device. identifierForVendor is the best you're going to get. Apple has systematically disabled identifying a specific device so that users' IDs can't be passed around by marketers.

Comments