Adobe Air Extension

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 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:


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 ""

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:




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

add a call for tracking whenever the app is launched


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}); // 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 here:

please note: the package name of the receiver is com.appsflyer.MultipleInstallBroadcastReceiver.

It's highly recommended to add Google Play services into your app so we can track Google Advertising ID. See

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