I haven’t needed to get a unique device ID since before we stopped being able to use -[UIDevice uniqueIdentifier]
until today. Apple added the method -[UIDevice identifierForVendor]
in iOS 6 which totally replaces the old method for any of my needs.
What the method does is give a unique ID for any apps from the same vendor on a given device. The part which might be a little confusing at first is that “vendor” does not mean the same developer account, but instead means any apps where the first part of the bundle identifier (CFBundleIdentifier
) is the same. So com.collindonnell.myapp
and com.collindonnell.myotherapp
would get the same identifier, but com.albinadevelopment.anyapp
would not.