The 2017 Ionic Developer Survey Results are in!

Unique Device ID

Improve this doc

This plugin produces a unique, cross-install, app-specific device id.

Repo: https://github.com/Paldom/UniqueDeviceID

Installation

  1. Install the Cordova and Ionic Native plugins:
    $ ionic cordova plugin add cordova-plugin-uniquedeviceid
    $ npm install --save @ionic-native/unique-device-id
    
  2. Add this plugin to your app's module

Supported platforms

Usage

import { UniqueDeviceID } from '@ionic-native/unique-device-id';

constructor(private uniqueDeviceID: UniqueDeviceID) { }

...

this.uniqueDeviceID.get()
  .then((uuid: any) => console.log(uuid))
  .catch((error: any) => console.log(error));

Instance Members

get()

Gets a unique, cross-install, app-specific device id.

Returns: Promise<string> Returns a promise that resolves when something happens

API

Native

General