nativescript-unique-identifier
Nativescript Plugin allow to acces UUID.
npm i --save nativescript-unique-identifier
  • Version: 1.0.0
  • GitHub:
  • Downloads:
    • Last Day:   0
    • Last Week:  1
    • Last Month: 57

NativeScript UUID Plugin apple android

Usage

See this example for Angular:

import { Component, OnInit } from "@angular/core";
import {UniqueIdentifier} from "nativescript-unique-identifier"

@Component({
selector: "ns-main",
template: "<page-router-outlet></page-router-outlet>"
})
export class AppComponent {
constructor() {
}

ngOnInit(){
let uuid = new UniqueIdentifier();
console.log(uuid.getUUID());
}
}

And for pure NativeScript:

var plugin = require("nativescript-unique-identifier").UniqueIdentifier;
console.log(plugin.getUUID());

## Installation

```bash
$ tns plugin add nativescript-unique-identifier