Support Home > SDK Integration > SDK – KochavaTracker

SDK – KochavaTracker

SDK

KochavaTracker (Adobe Air)

Minimum Requirements

  • Android API 9 (Recommended API 14)
  • Xcode Build Version: 8.3.0
  • iOS Version: 8.0
  • Adobe AIR – 18.0 or higher

SDK Integration

  1. Download the SDK.
    For the latest version of the Adobe Air SDK, refer to the Kochava SDK repository.

     

    NOTE: The GMS variant has Google Mobile (Play) Services bundled for you, and does not require you to manually add Google Mobile Services to be able to perform attribution based on the Android Advertising Identifier. If you are already using Google Mobile Services in your app, you can use the Standard variant instead which does not have Google Mobile Services bundled.

  2.  

  3. Add the SDK to your project.

     

    For Flash Professional CS6 or Higher:

    1. Create a new Android or iOS project.
    2. Choose File>Publish Settings.
    3. Select the wrench icon next to Script for ActionScript Settings.
    4. Select the Library Path tab.
    5. Click Browse for Native Extension (ANE) File and select the com.kochava.extensions.Kochava.ane file.
    6. Click OK.
    7. Select the wrench icon next to Target for Player Settings.
    8. Select the Permissions tab, and enable:
      • INTERNET
      • ACCESS_NETWORK_STATE
      • ACCESS_WIFI_STATE
    9. Check the Manually manage permissions and manifest additions for this app box.
    10. Click OK.

     

    For Flash Builder 4.6 or Higher:

    1. Go to Project Properties.
    2. Select Native Extensions under Actionscript Build Path.
    3. Choose Add ANE… and navigate to the com.kochava.extensions.Kochava.ane file.
    4. Select Actionscript Build Packaging > Google Android (or iOS if building for that target).
    5. Select the Native Extensions tab, and click the Package checkbox next to the extension.

     

    Update Application Descriptor:

    For Kochava to work, changes are required to the application XML file for the app. Modify the XML file created by your IDE with the following changes:

    1. Set your AIR SDK to 18.0 or higher in the app descriptor file.

    2.  

    3. Include a link to the extension in the descriptor.

    4.  

    5. Update your Android Manifest Additions in the XML element.


Using the SDK

Once an SDK has been integrated into your project, it’s time to make use of the included classes and resources.

 

Initialization and Configuration:

By initializing and configuring a KochavaTracker, you are completing the basic integration with a KochavaTracker SDK. This should be done in the logic of your application where things first start up.

In the sample code below make sure you replace “_YOUR_{PLATFORM}_APP_GUID_” with your app’s App Guid from the Kochava dashboard. For more information on locating an App GUID, refer to our Locating an App GUID support documentation.

 

Events:

The KochavaTracker supports a variety of event formats with custom or standardized parameters and key names.

 

Example –

 


References

Additional features and usage details are available in the reference.

KochavaTracker Adobe Air Methods

A list of methods available to send to the Kochava Server.

Post-Install Events

A list of the standard events that can be passed to Kochava.

 
 

Last Modified: Oct 9, 2017 at 2:18 pm