Cordova IDFA

Identifier for Advertisers (IDFA) Plugin for iOS > 6
platforms: ios
$ cordova plugin add com.ios.cordova-idfa

Identifier for Advertisers (IDFA) Plugin for PhoneGap/Cordova Applications

This cordova/phonegap plugin retrieves 'Identifier for Advertisers (IDFA)' from iOS > 6 devices.

More info here

Supported Platforms

  • iOS > 6.0


Install with Cordova cli

$ cordova plugin add

Install with Phonegap cli

$ phonegap plugin add


  • Add AdSupport.framework to the Linked Frameworks in Xcode

  • After getting deviceReady event;

Cordova.exec(cb, err, "CDVIdfa", "advertisingIdentifier", []);

function cb(m) {
  console.log('Device IDFA is '+m);

function err(m) {
  console.log('Error: '+m);


Try the code. If you find a problem, file an issue or create a pull request.


Thanks to @choix a.k.a Anton Volkov