Skip to content
PhoneGap / Cordova unique device id (UUID) plugin for Android, iOS and Windows Phone 8.
Branch: master
Clone or download
Pull request Compare This branch is 6 commits ahead of Paldom:master.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Removed `READ_PHONE_STATE` permission and storing the unique id in sh… Feb 7, 2019
www
.gitignore Removed `READ_PHONE_STATE` permission and storing the unique id in sh… Feb 7, 2019
LICENSE inital Jul 31, 2014
README.md Adding npm version badge. May 21, 2019
package-lock.json Changing the name of the plugin for Cordova & npm May 21, 2019
package.json Changing the name of the plugin for Cordova & npm May 21, 2019
plugin.xml Changing the name of the plugin for Cordova & npm May 21, 2019

README.md

cordova-plugin-unique-device-id2

npm version

Difference from original forked version

  1. Removed READ_PHONE_STATE permission https://android-developers.googleblog.com/2018/10/providing-safe-and-secure-experience.html
  2. 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);
You can’t perform that action at this time.