Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 1.03 KB

README.md

File metadata and controls

45 lines (26 loc) · 1.03 KB

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

Installing

Install with Cordova cli

$ cordova plugin add https://github.com/burakson/Cordova-Idfa.git

Install with Phonegap cli

$ phonegap plugin add https://github.com/burakson/Cordova-Idfa.git

Usage

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

Feedback

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

Thanks

Thanks to @choix a.k.a Anton Volkov