Skip to content
No description, website, or topics provided.
JavaScript Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
platforms/ios
.gitignore
LICENSE
README.md
index.android.js
index.d.ts
index.ios.js
package.json

README.md

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}`);
You can’t perform that action at this time.