iOS Unique identifier deprecated?

Now when Apple is to phase out the UDID, what will happen to Unity's class iPhoneSettings.uniqueIdentifier?

Are we better off generating our own unique identifier for each game (some md5 string at first boot of the app)?

more ▼

asked Jan 27, 2012 at 12:24 PM

save gravatar image

9.7k 60 53 96

By the looks of it Unity have already removed it from the scripting reference.

Jan 27, 2012 at 12:26 PM save

currently a silent fail for apple devices

Oct 20, 2012 at 10:01 AM ina
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

I only worked once with an Android phone, so i don't even know what uniqueIdentifier has returned by this (old) property, but i guess it's the phone's unique identifier which identifies the device.

If that's what it was good for, it has been moved to a more general place. Specifically here: SystemInfo.deviceUniqueIdentifier which should return the UDID (unique device identifier)

I'm not sure what this property will return in future builds since, like you said, iOS has removed the possibility to read the UDID of the device.

more ▼

answered Jan 27, 2012 at 02:47 PM

Bunny83 gravatar image

78.8k 27 110 344

Thanks Bunny for the answer. So I guess we, as developers, are fine just creating something of our own unique identifier (for user data etc when connecting to servers). This is probably the most correct answer there will be, so I'll mark yours as correct, although it would be nice to get an insight from what Apple will do with this as many functions and services depends on this feature.

Jan 27, 2012 at 03:44 PM save

Yes lets hope for that! We would be able though to do a quick md5 hash of, lets say localtime of first boot and some highly random value and store it in the prefs.

Jan 27, 2012 at 06:28 PM save

Well, i guess you have to find another way to identify a user. One the one hand the UDID was a reliable user identification, one the other hand it's private data. A lot users don't want to be recognised everywhere. I don't know why Apple removed this feature, but i guess due to security / privacy issues.

Beside the fact that Apple is going to deny reading the UDID, the more important thing is what will be returned by SystemInfo.deviceUniqueIdentifier in the future. Maybe Unity implement some own "cookie"-like system.

Jan 27, 2012 at 06:15 PM Bunny83
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Jan 27, 2012 at 12:24 PM

Seen: 3985 times

Last Updated: Oct 20, 2012 at 10:01 AM