cordova-unique-device-id

Cordova unique device id (UUID) plugin for Android, iOS and Windows Phone 8. Remains the same after app uninstall.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
cordova-unique-device-id
1.3.26 years ago6 years agoMinified + gzip package size for cordova-unique-device-id in KB

Readme

cordova-unique-device-id
Cordova unique device id (UUID) plugin for Android, iOS and Windows Phone 8. Remains the same after app uninstall.
Note This is a copy of UniqueDeviceID that includes a fix from @rustico-david to resolve the Android Permission "Allow to make and manage phone calls" bug.
Renamed and republished to NPM as cordova-unique-device-id

Installation

cordova plugin add cordova-unique-device-id
or the following for the latest
cordova plugin add https://github.com/john-doherty/cordova-unique-device-id.git

Supported Platforms

  • Android
  • iOS
  • Windows Phone 8

Usage

```js // check the plugin is installed if (window.plugins && window.plugins.uniqueDeviceID) {
// request UUID
plugins.uniqueDeviceID(function(uuid) {
    // got it!
    console.log(uuid);
},
function(err) {
    // something went wrong
    console.warn(err);
});
}