Removed unique-device-id - unmaintained
This commit is contained in:
parent
125a6bacb3
commit
7ecf658582
@ -1,40 +0,0 @@
|
|||||||
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
|
||||||
import { Injectable } from '@angular/core';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @name Unique Device ID
|
|
||||||
* @description
|
|
||||||
* This plugin produces a unique, cross-install, app-specific device id.
|
|
||||||
*
|
|
||||||
* @usage
|
|
||||||
* ```typescript
|
|
||||||
* import { UniqueDeviceID } from '@ionic-native/unique-device-id/ngx';
|
|
||||||
*
|
|
||||||
* constructor(private uniqueDeviceID: UniqueDeviceID) { }
|
|
||||||
*
|
|
||||||
* ...
|
|
||||||
*
|
|
||||||
* this.uniqueDeviceID.get()
|
|
||||||
* .then((uuid: any) => console.log(uuid))
|
|
||||||
* .catch((error: any) => console.log(error));
|
|
||||||
*
|
|
||||||
* ```
|
|
||||||
*/
|
|
||||||
@Plugin({
|
|
||||||
pluginName: 'UniqueDeviceID',
|
|
||||||
plugin: 'cordova-plugin-uniquedeviceid',
|
|
||||||
pluginRef: 'window.plugins.uniqueDeviceID',
|
|
||||||
repo: 'https://github.com/Paldom/UniqueDeviceID',
|
|
||||||
platforms: ['Android', 'iOS', 'Windows Phone 8'],
|
|
||||||
})
|
|
||||||
@Injectable()
|
|
||||||
export class UniqueDeviceID extends IonicNativePlugin {
|
|
||||||
/**
|
|
||||||
* Gets a unique, cross-install, app-specific device id.
|
|
||||||
* @return {Promise<string>} Returns a promise that resolves when something happens
|
|
||||||
*/
|
|
||||||
@Cordova()
|
|
||||||
get(): Promise<string> {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user