Giter Site home page Giter Site logo

adobeairextension-appsflyer's Introduction

AdobeAirExtension-AppsFlyer

This project provides support for Adobe Air Extension. please follow the steps for both IOS and Android.

##Installation (common both for IOS and Android)

Download the appsflyer.ane file from the ANE folder.

Add the ANE to your project and make sure the ide is marked to package it.

If the following was not added automatically please add it to the APP_NAME-app.xml:

		<extensions>
    			<extensionID>com.appsflyer.adobeair</extensionID>
			</extensions>

###Android

follow the instructions about permissions and receiver as described here: http://support.appsflyer.com/entries/22801952?challenge=GxUdr14D3G5LHMqCvkRnp1FvC

####please note: the package name of the receiver is com.appsflyer.adobeeair.CLASS_NAME.

import the AppsFlyer Extension into your project

		import AppsFlyerInterface;

construct the AppsFlyer

		var afInterface:AppsFlyerInterface = new AppsFlyerInterface();

set the developer key by calling the function:

		afInterface.setDeveloperKey("your_developer_key_here",null);// second paramter is just for IOS

add a call for tracking whenever the app is launched

		afInterface.sendTracking();

add a call for tracking in-app events when desired

		afInterface.sendTrackingWithEvent("purchase","90.0"); // purchase is the event name, 90 is the value

get conversion data (attribution info)

		afInterface.getConversionData(); // calls async function to get the conversion data
		
		afInterface.addEventListener(AppsFlyerEvent.SUCCESS,function(e){var text=e.data}); // e.data holds the string with the conversion data.

###IOS

import the AppsFlyer Extension into your project

		import AppsFlyerInterface;

construct the AppsFlyer

		var afInterface:AppsFlyerInterface = new AppsFlyerInterface();

set the developer key by calling the function:

		afInterface.setDeveloperKey("your_developer_key_here","your_apple_id_here");

add a call for tracking whenever the app is launched

		afInterface.sendTracking();

add a call for tracking in-app events when desired

		afInterface.sendTrackingWithEvent("purchase","90.0"); // purchase is the event name, 90 is the value

get conversion data (attribution info)

		afInterface.getConversionData(); // calls async function to get the conversion data
		
		afInterface.addEventListener(AppsFlyerEvent.SUCCESS,function(e){var text=e.data}); // e.data holds the string with the conversion data.

adobeairextension-appsflyer's People

Contributors

gmeroz avatar orenbaranes avatar

Watchers

 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.