npm i --save @kefah/nativescript-uuid
- Version: 1.0.1
- GitHub: https://github.com/kefahB/nativescript-uuid
- NPM: https://www.npmjs.com/package/%40kefah%2Fnativescript-uuid
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
NativeScript UUID
This is a plugin for Nativescript that allows you to get a UUID (Universal Unique Identifier) for a device.
This plugin support the NS 8 also ;-)
Inspired from StackOverflow: How to preserve identifierForVendor in ios after uninstalling ios app on device?
.
Uses SAMKeychain Cocoa Pod
.
Installation
Run the following command from the root of your project:
ns plugin add @kefah/nativescript-uuid
Usage
JavaScript
let uid = require("@kefah/nativescript-uuid").NativescriptUuid;
const uuid = uid.getUUID();
console.log(`The device UUID is ${uuid}`);
TypeScript
import {NativescriptUuid} from '@kefah/nativescript-uuid';
const uuid = NativescriptUuid.getUUID();
console.log(`The device UUID is ${uuid}`);
License
Apache License Version 2.0