@owen-it/nativescript-uuid
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

NativeScript UUID

This is a plugin for Nativescript that allows you to get a UUID (Universal Unique Identifier) for a device.

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:

tns plugin add @owen-it/nativescript-uuid

Usage

JavaScript

  const nsUuid = require("nativescript-uuid");

  const uuid = nsUuid.getUUID();
  console.log(`The device UUID is ${uuid}`);

TypeScript

  import {getUUID} from 'nativescript-uuid';

  const uuid = getUUID();
  console.log(`The device UUID is ${uuid}`);

Package Sidebar

Install

npm i @owen-it/nativescript-uuid

Weekly Downloads

0

Version

0.0.4

License

Apache-2.0

Unpacked Size

13.5 kB

Total Files

10

Last publish

Collaborators

  • anteriovieira