cordova-plugin-unique-device-id2
cordova-plugin-unique-device-id2
npm i cordova-plugin-unique-device-id2
cordova-plugin-unique-device-id2

cordova-plugin-unique-device-id2

PhoneGap / Cordova unique device id (UUID) plugin for Android, iOS and Windows Phone 8.

by wizpanda

2.0.0 (see all)License:MITTypeScript:Not Found
npm i cordova-plugin-unique-device-id2
Readme

cordova-plugin-unique-device-id2

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);

Downloads/wk

225

GitHub Stars

10

LAST COMMIT

4yrs ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
2.0.0
latest
4yrs ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate