Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including cordova-plugin-uniquedeviceid with all npm packages installed. Try it out:

cordova-plugin-uniquedeviceid lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("cordova-plugin-uniquedeviceid/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

cordova-plugin-uniquedeviceid v1.3.2

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

UniqueDeviceID

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

Installation

Latest stable release: phonegap local plugin add cordova-plugin-uniquedeviceid
or cordova plugin add cordova-plugin-uniquedeviceid

Current state from git: phonegap local plugin add https://github.com/Paldom/UniqueDeviceID.git
or cordova plugin add https://github.com/Paldom/UniqueDeviceID.git

Installation - PhoneGap Build

Add following to config.xml: <gap:plugin name="cordova-plugin-uniquedeviceid" source="npm" />

For older versions, use the following: <gap:plugin name="hu.dpal.phonegap.plugins.uniquedeviceid" version="1.2.0" /> or <gap:plugin name="hu.dpal.phonegap.plugins.uniquedeviceid" source="plugins.cordova.io" />

Supported Platforms

  • Android
  • iOS
  • Windows Phone 8

Usage

// Get UUID
window.plugins.uniqueDeviceID.get(success, fail);

Success callback function:

function success(uuid)
{
    console.log(uuid);
};
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free