Adobe Air Extension

Introduction

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

What's New in This Version

  • Updated Native SDKs
  • Added In-App Purchase Receipt Validation

Installation (common for both iOS and Android)

Download the appsflyer.ane file from the ANE folder or via Github.

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>

 Note

On AppsFlyer's dashboard you will need to add "air." prefix to the package name as this is added automatically by Air. For the above exmaple the app id on AppsFlyer's dashboard should be "air.com.appsflyer.adobeair"

Import the AppsFlyer Extension into your Project

import AppsFlyerInterface;

Construct the AppsFlyer

private static var appsFlyer:AppsFlyerInterface;
appsFlyer = new AppsFlyerInterface();

Set the Developer Key by Calling the Function

Android iOS
appsFlyer.appsFlyer.init("DevKey", null);

Add a Call for Tracking Whenever the App is Launched

appsFlyer.trackAppLaunch();

Add a Call for Tracking In-App Events when Desired

var param:String = "Deposit";
var value:String = '{"amount":10, "FTDLevel":"-"}';
appsFlyer.trackEvent(param, value);         

get conversion data (attribution info)

appsFlyer.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.

Setting your App's User (Optional)

appsFlyer.setAppUserId("user_id_as_used_in_the_app"); //(Optional) set your app's user id

Getting AppsFlyer's User ID

appsFlyerID = afInterface.getAppsFlyerUID();

Android Notes

Follow the instructions about permissions and receiver as described in the Android SDK Integration Guide.

 Note

The package name of the receiver is: com.appsflyer.MultipleInstallBroadcastReceiver.

It is highly recommended to add Google Play services into your app so we can track Google Advertising ID. See: http://developer.android.com/google/play-services/setup.html

Was this article helpful?
5 out of 7 found this helpful