Unique Device ID

Improve this doc

$ ionic plugin add cordova-plugin-uniquedeviceid
$ npm install --save @ionic-native/unique-device-id

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

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

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