Is SystemInfo.deviceUniqueIdentifier globally unique?

hello. I want to know SystemInfo.deviceUniqueIdentifier is unique globally on IOS or not.

On iOS7 devices it will be UIDevice identifierForVendor or, if that fails for any reason, ASIdentifierManager advertisingIdentifier. You might need to ask Apple if their APIs are globally unique. It is known that an app installed on a device returns one id, but if you re-install the app you can get a second, different id.

I wouldn’t build any security thing in game around deviceUniqueIdentifier since AFAIK it can be spoofed with jailbroken devices.

Thanks for your replies.

Does this includes app update from App Store?

App updates don’t change identification strings.

@Agent_007 , can you provide the source for that?

From Unity’s docs for SystemInfo.deviceUniqueIdentifier:

“on pre-iOS7 devices it will return hash of MAC address. On iOS7 devices it will be UIDevice identifierForVendor or, if that fails for any reason, ASIdentifierManager advertisingIdentifier.”

And, from Apple’s docs for identifierForVendor:

“The value of this property is the same for apps that come from the same vendor running on the same device.”

“The value in this property remains the same while the app (or another app from the same vendor) is installed on the iOS device. The value changes when the user deletes all of that vendor’s apps from the device and subsequently reinstalls one or more of them. The value can also change when installing test builds using Xcode or when installing an app on a device using ad-hoc distribution.”