Skip to content

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

License

Notifications You must be signed in to change notification settings

burakson/Cordova-Idfa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published