cordova-plugin-unique-device-id2
v2.0.0
Published
PhoneGap / Cordova unique device id (UUID) plugin for Android, iOS and Windows Phone 8.
Downloads
988
Maintainers
Readme
cordova-plugin-unique-device-id2
Difference from original forked version
- Removed
READ_PHONE_STATE
permission https://android-developers.googleblog.com/2018/10/providing-safe-and-secure-experience.html - Using
SharedPreferences
to store the unique UUID
PhoneGap / Cordova unique device id (UUID) plugin for Android, iOS and Windows Phone 8. ~~Remains the same after app uninstall~~.
Installation
cordova plugin add cordova-plugin-unique-device-id2
# or
phonegap local plugin add cordova-plugin-unique-device-id2
Supported Platforms
- Android
- iOS
- Windows Phone 8
Usage
// Success callback function
function fooSuccessCallback(uuid) {
console.log(uuid);
};
function fooFailCallback(error) {
console.log(error);
};
// Get UUID
window.plugins.uniqueDeviceID.get(fooSuccessCallback, fooFailCallback);