Skip to content
A NativeScript plugin for iOS that allows you to get a UUID (Universal Unique Identifier) for a device.
JavaScript Ruby
Branch: master
Clone or download
#4 Compare This branch is 10 commits ahead of ignaciolarranaga:master.
Latest commit 452a19e Jul 16, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
platforms/ios Upgrade to SAMKeychain May 23, 2019
.gitignore
LICENSE Initial version Sep 29, 2015
README.md Upgrade to SAMKeychain May 23, 2019
index.android.js Update index.android.js May 24, 2018
index.d.ts add android support Sep 12, 2017
index.ios.js Upgrade to SAMKeychain May 23, 2019
package.json add android support Sep 12, 2017

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 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.