Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenUDID is not unique across devices #17

Closed
jamesrz2live opened this issue Mar 28, 2012 · 8 comments
Closed

OpenUDID is not unique across devices #17

jamesrz2live opened this issue Mar 28, 2012 · 8 comments

Comments

@jamesrz2live
Copy link
Contributor

Suppose that a user has your application installed on device A. The user then buys a new device, device B. The user creates a backup of device A using iTunes and then restores it onto device B.

When the user launches your application on device B, it will report the same udid as device A because this information is read from NSUserDefaults (which was copied from device A to B during the backup/restore).

@ylechelle
Copy link
Owner

This scenario is indeed possible.

Here, this calls for a signature that uses the MAC address to sign and compare with former, and regenerate the OUDID in that case. Makes sense?

@dgutzeit
Copy link

+1 for this approach

@patoth
Copy link

patoth commented Apr 3, 2012

+1, just make sure former OUDID generated with past versions remains the same.

@Gavtron
Copy link

Gavtron commented Apr 3, 2012

+1, and I'm curious when this change is going to be made, because nothing's been done with it for a few days and this seems pretty important

@ylechelle
Copy link
Owner

@Gavtron Feel free to suggest the code for it with a pull request. Otherwise, I should be able to address this by the end of the week...

@brodybits
Copy link

There is already a nice solution, based on the MAC address by itself or in combination with the bundle ID at: https://github.com/gekitz/UIDevice-with-UniqueIdentifier-for-iOS-5

@ylechelle
Copy link
Owner

Chris,

Sorry but these last two only suggest a non persistent and non shareable UUID (user unique id)... which is fine for certain in-app needs, but not at all a replacement for the former persistent and shareable UDID (unique device id).

As for any scheme based on the MAC address and/or bundle-id, it's either too sensitive (see many discussions elsewhere on this topic) or not universal enough.

This issue #17 is ONLY about corner cases where OpenUDID is in fact duplicate because of the persistence across restores on different "active devices". I will close this topic since there is consensus on how to solve this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants