Socket
Socket
Sign inDemoInstall

cordova-plugin-unique-device-id2

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    cordova-plugin-unique-device-id2

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


Version published
Maintainers
1
Install size
25.0 kB
Created

Readme

Source

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

Keywords

FAQs

Last updated on 21 May 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc