Reputation: 144
It seems that we cannot use [UIDevice currentDevice].uniqueIdentifier
anymore. The Advertising Identifier is supposed to be used. But the Advertising Identifier is available only since iOS 6.0.
How can I uniquely identify a device lower than iOS 6.0?
Upvotes: 0
Views: 1314
Reputation: 524
Yes, the unique identifier is deprecated. For this i have a solution.Please go through the below link and i believe this is the replacement of apple UDID.
https://github.com/ylechelle/OpenUDID#usage
Upvotes: 1
Reputation: 2308
On the first time the app is launched, create a UUID with CFUUIDCreate
, convert it to a string with CFUUIDCreateString
, and then save it to a file in the app's cache directory. On subsequent launches of the app, use the UUID saved to the file rather than creating a new on.
Upvotes: 0