Skip to content

csabbey/cordova-plugin-idfa

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
    }
});

About

Cordova plugin to get Advertising ID (IDFA or AAID)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 66.7%
  • JavaScript 17.4%
  • Objective-C 15.9%