Unique Device ID
This plugin produces a unique, cross-install, app-specific device id.
Repo: https://github.com/Paldom/UniqueDeviceID
Installation
- Install the Cordova and Ionic Native plugins:
$ ionic cordova plugin add cordova-plugin-uniquedeviceid $ npm install --save @ionic-native/unique-device-id@4
- Add this plugin to your app's module
Supported platforms
- Android
- iOS
- Windows Phone 8
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