cordova-plugin-idfa-ka
v1.0.2
Published
Cordova plugin to get Advertising ID (IDFA or AAID)
Downloads
23
Maintainers
Readme
cordova-plugin-idfa
Cordova plugin to get Advertising ID (IDFA or AAID)
Installation
cordova plugin add cordova-plugin-idfa --save
Plugin depends on cordova-support-google-services for setting up google services properly. Please read the README carefully in order to avoid common issues with a project configuration.
Supported Platforms
- iOS
- Android
Methods
Every method returns a promise that fulfills when a call was successful.
getInfo()
Returns advertising id with limitAdTracking
flag. On iOS use idfa
property, on Android use aaid
.
cordova.plugins.idfa.getInfo().then(function(info) {
if (!info.limitAdTracking) {
console.log(info.idfa || info.aaid);
}
});