npm i --save nativescript-uuid
- 版本:0.0.1
- GitHub: https://github.com/gdtdpt/nativescript-uuid
- NPM: https://npmjs.net.cn/package/nativescript-uuid
- 下载
- 昨天: 0
- 上周: 0
- 上个月: 0
NativeScript UUID
这是一个 Nativescript 插件,允许您为设备获取 UUID(通用唯一标识符)。
灵感来自[StackOverflow: 在设备上卸载 iOS 应用后如何在 iOS 中保留 identifierForVendor?
](http://stackoverflow.com/questions/21878560/how-to-preserve-identifierforvendor-in-ios-after-uninstalling-ios-app-on-device)。
安装
tns plugin add nativescript-uuid
使用
var plugin = require("nativescript-uuid");
var uuid = plugin.getUUID();
console.log("The device UUID is " + uuid);