Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Golan
authored and
Golan
committed
Oct 27, 2016
1 parent
fc545a5
commit c82d85a
Showing
2 changed files
with
11 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,17 @@ | ||
AdobeAirExtension-AppsFlyer | ||
=========================== | ||
<p align="center"> | ||
<img height="75" src="repository_assets/AF_color_medium.png" /> | ||
</p> | ||
----------- | ||
|
||
<center> Adobe Air extension - Plugin </center> | ||
------------------------ | ||
|
||
This project provides support for Adobe Air Extension. | ||
please follow the steps for both IOS and Android. | ||
[AppsFlyer](https://www.appsflyer.com/) helps mobile marketers measure and improve their performance through amazing tools, really big data and over 2,000 integrations. | ||
|
||
##Installation (common both for IOS and Android) | ||
- Supports iOS 8+ | ||
|
||
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. | ||
Changelog | ||
------------ | ||
|
||
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 | ||
|
||
appsFlyer.setDeveloperKey("your_developer_key_here",null); | ||
iOS | ||
|
||
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 | ||
|
||
|
||
|
||
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 here: | ||
http://support.appsflyer.com/entries/22801952?challenge=GxUdr14D3G5LHMqCvkRnp1FvC | ||
|
||
####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 http://developer.android.com/google/play-services/setup.html | ||
You can find the release changelog [here](https://appsflyer.zendesk.com/hc/en-us/articles/207032226). |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.