-
Type:
Improvement
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: cordova-plugin-device
-
Labels:None
-
Environment:
iOS
-
Flags:Patch
-
External issue URL:
The UUID used in Cordova device plugin is currently just generating a new UUID and saving to preferences. This can be improved by using iOS identifierForVendor which has been in use since at least iOS 6 (maybe earlier).
This means the UUID will be the same across multiple apps from the same vendor.
I have made the adjustments in this pull request:
https://github.com/apache/cordova-plugin-device/pull/36
This should be backwards compatible as we still check the NSUserDefaults before using identifierForVendor so previous installs will not be affected.