Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jasonz1987/cordova-plugin-keychain-idfa
cordova plugin for getting idfa from keychain
https://github.com/jasonz1987/cordova-plugin-keychain-idfa
cordova-plugin deviceid idfa ios keychain
Last synced: 24 days ago
JSON representation
cordova plugin for getting idfa from keychain
- Host: GitHub
- URL: https://github.com/jasonz1987/cordova-plugin-keychain-idfa
- Owner: jasonz1987
- Created: 2018-07-23T10:53:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-04T08:04:10.000Z (over 6 years ago)
- Last Synced: 2024-11-19T12:58:24.942Z (about 1 month ago)
- Topics: cordova-plugin, deviceid, idfa, ios, keychain
- Language: Objective-C
- Size: 564 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cordova-plugin-keychain-idfa
Get ios unique device id by **keychain+idfa**
if you can't use AdSupport,please check [UUID+KEYCHAIN](https://github.com/jasonz1987/cordova-plugin-keychain-uuid)
more info please see my article :http://www.jason-z.com/post/22
[中文文档](README_CN.md)
# Exmaple
[Ionic3 Demo](https://github.com/jasonz1987/ionic-keychain-idfa-demo)
# Install
```
cordova plugin add cordova-plugin-keychain-idfa
```# Methods
### get device id from keychain
```javascript
var args = {
'key':'com.jason-z.test.idfa'
};KeychainIDFA.getDeviceID((id)=>{
console.log(id);
},(err)=>{
console.log(err);
})
```### delete device id from keychain
```javascript
var args = {
'key':'com.jason-z.test.idfa'
};KeychainIDFA.deleteDeviceID((id)=>{
console.log(id);
},(err)=>{
console.log(err);
})
```*you can define **key** value by your own*
# Warning
this plugin depends on **AdSupport.Framework**,so you must select right choice when submit your app to App Store. you can refer below choice if you havn't add any ads in your app.
![appstore审核](screenshot-1.png)
# Donate
If this project help you reduce time to develop, you can give me a cup of coffee :)
[![paypal](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/jasonz1987/6.66)