Get ios unique device id by keychain+idfa
if you can't use AdSupport,please check UUID+KEYCHAIN
more info please see my article :http://www.jason-z.com/post/22
cordova plugin add cordova-plugin-keychain-idfa
var args = {
'key':'com.jason-z.test.idfa'
};
KeychainIDFA.getDeviceID((id)=>{
console.log(id);
},(err)=>{
console.log(err);
})
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
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.
If this project help you reduce time to develop, you can give me a cup of coffee :)