https://github.com/jasonz1987/cordova-plugin-keychain-uuid
cordova plugin for getting uuid from keychain
https://github.com/jasonz1987/cordova-plugin-keychain-uuid
cordova-plugin ios keychain uuid
Last synced: 2 months ago
JSON representation
cordova plugin for getting uuid from keychain
- Host: GitHub
- URL: https://github.com/jasonz1987/cordova-plugin-keychain-uuid
- Owner: jasonz1987
- License: mit
- Created: 2018-07-24T06:05:45.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-04T08:08:51.000Z (almost 7 years ago)
- Last Synced: 2025-04-15T05:57:43.728Z (2 months ago)
- Topics: cordova-plugin, ios, keychain, uuid
- Language: Objective-C
- Homepage:
- Size: 78.1 KB
- Stars: 7
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cordova-plugin-keychain-uuid
get iOS unique device id by **KEYCHAIN+UUID**,
you can also choose another way : [KEYCHAIN+IDFA](https://github.com/jasonz1987/cordova-plugin-keychain-idfa)
more info visit:http://www.jason-z.com/post/22
[中文文档](REAEDME_CN.md)
# Example
[Ionic3 Demo](https://github.com/jasonz1987/ionic-keychain-uuid-demo)
# Install
```bash
cordova plugin add cordova-plugin-keychain-uuid
```# Usage
### get device id from keychain
```javascript
var args = {
'key':'com.jason-z.test.uuid'
};KeychainUUID.getDeviceID((id)=>{
console.log(id);
},(err)=>{
console.log(err);
})
```### delete device id from keychain
```javascript
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 :)
[](https://www.paypal.me/jasonz1987/6.66)