cordova-plugin-keychain-uuid

1.0.4 • Public • Published

cordova-plugin-keychain-uuid

get iOS unique device id by KEYCHAIN+UUID,

you can also choose another way : KEYCHAIN+IDFA

more info visit:http://www.jason-z.com/post/22

中文文档

Example

Ionic3 Demo

Install

cordova plugin add cordova-plugin-keychain-uuid

Usage

get device id from keychain

var args = {
  'key':'com.jason-z.test.uuid'
};
 
KeychainUUID.getDeviceID((id)=>{
 console.log(id);   
},(err)=>{
    console.log(err);
})

delete device id from keychain

var args = {
  'key':'com.jason-z.test.uuid'
};
 
KeychainUUID.deleteDeviceID((id)=>{
 console.log(id);   
},(err)=>{
    console.log(err);
})

you can custom key value by your own.

Warning

the keychain data are stored privately by default. if you want share your data in different app (in same account),you must open KEYCHAIN_SHARE. you can do it by these steps.

open Xcode->Capabilities->Keychain Sharing, then add same group in your apps.

截图

Donate

If this project help you reduce time to develop, you can give me a cup of coffee :)

paypal

Package Sidebar

Install

npm i cordova-plugin-keychain-uuid

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

96.1 kB

Total Files

12

Last publish

Collaborators

  • ccnuzxg