Git Product home page Git Product logo

cordova-plugin-android-idfa's Introduction

cordova-plugin-android-idfa

Phonegap, Cordova, Intel XDK plugin to get Advertising Id Info

Advertising ID (IDFA) Plugin for Android using Google Play Services

This plugin depends on com.google.play.services. Cordova (PhoneGap) 3.0+ Plugin to get Adertising ID (IDFA) on Adnroid device using Google Play Sercies API. Obtains advertising id (IDFA) info.

Prerequisites:

  • A Cordova 3.0+ project for Android
  • Google Play Services API

Platform SDK supported

  • Android, using Google Play Services for Android
  • iOS

Quick start

To install this plugin, follow the Command-line Interface Guide. You can use one of the following command lines:

  • cordova plugin add cordova-plugin-android-idfa
  • cordova plugin add https://github.com/praves77/cordova-plugin-android-idfa.git

Make sure to review the Google Play Developer Program policy and terms


Javascript API

Note: All success callbacks are in the form 'function () {}', and all failure callbacks are in the form 'function (err) {}' where err is a String explaining the error reason.

Advertising id info

getAdInfo(success, error);

Gets the advertising id (IDFA) info (id and limit ad tracking flag).

  • {function()} success: success callback with {idfa: <advertising id (IDFA)>, limitAd: } as object argument.
  • {function()} failure: failure callback.

Advertising id

getAdId(success, error);

Gets the advertising id (IDFA).

  • {function()} success: success callback with {idfa: <advertising id (IDFA)>} as object argument.
  • {function()} failure: failure callback.

Limit Ad Flag

getLimitAdFlag(success, error);

Gets the limit ad tracking flag.

  • {function()} success: success callback with { limitAd: } as object argument.
  • {function()} failure: failure callback.

cordova-plugin-android-idfa's People

Contributors

praves77 avatar apparition47 avatar patriciagao avatar

Watchers

James Cloos avatar Boban Piskulic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.