Skip to content

A NativeScript plugin for iOS that allows you to get a UUID (Universal Unique Identifier) for a device.

License

Notifications You must be signed in to change notification settings

animalus/nativescript-uuid

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}`);

About

A NativeScript plugin for iOS that allows you to get a UUID (Universal Unique Identifier) for a device.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.3%
  • Ruby 4.7%