Paldom / UniqueDeviceID

PhoneGap / Cordova unique device id (UUID) plugin for Android, iOS and Windows Phone 8. Remains the same after app uninstall.
MIT License
169 stars 96 forks source link

IOS 9.2 Not Unique anymore #19

Open kabus202 opened 8 years ago

kabus202 commented 8 years ago

Hi,

FYI I'm getting different id's back on iOS 9.2.

regards, kab

Paldom commented 8 years ago

Hi @kabus202, thanks for your note! I aim to solve this issue. Could you please specify the problem in a little bit more details? Do you receive different IDs every application start, or simply had it refreshed once, after OS update. Thanks!

kabus202 commented 8 years ago

Hi Paldom, I'm running this plugin with ionic. I'm getting different id's when i'm refreshing the app on live reload. It's not changing continues. but because i'm saving the id to database, i saw 4 id's instead of 1.

Kind regards, Lokman

Paldom commented 8 years ago

Hi @kabus202,

I've tested on iOS 9.2 device and emulator, the IDs are the same with pure PhoneGap. After app reinstalls (if it means uninstall too), it may wipe out NSUserDeafuls for that application. This may cause the loss off the generated UUID, if you don't have iCloud enabled to save user settings for you.
As I know, there isnt any better solution for this :(

kabus202 commented 8 years ago

Hi Paldom,

What i did for iOS was save the ID to the keychain. I won't change anymore :)