GithubHelp home page GithubHelp logo

rudderlabs / rudder-integration-appsflyer-android Goto Github PK

View Code? Open in Web Editor NEW
0.0 7.0 0.0 234 KB

RudderStack's Native SDK integration support for AppsFlyer.

Home Page: https://www.rudderstack.com

License: Other

Java 64.77% Kotlin 32.92% JavaScript 2.30%
rudderstack android appsflyer

rudder-integration-appsflyer-android's Introduction

What is RudderStack?

RudderStack is a customer data pipeline tool for collecting, routing and processing data from your websites, apps, cloud tools, and data warehouse.

More information on RudderStack can be found here.

Integrating AppsFlyer with RudderStack's Android SDK

  1. Add AppsFlyer as a destination in the Dashboard and define devKey

  2. Add these lines to your app/build.gradle

repositories {
    maven { url "https://dl.bintray.com/rudderstack/rudderstack" }
}
  1. Add the dependency under dependencies
implementation 'com.rudderstack.android.sdk:core:[1.2.1,)'
implementation 'com.rudderstack.android.integration:appsflyer:[2.2.0,)'

// appsflyer dependencies
implementation 'com.appsflyer:af-android-sdk:6.4.3'
implementation 'com.android.installreferrer:installreferrer:1.1.1'  // for attribution
  1. Initialize Appsflyer SDK in the Application class before initializing the Rudder SDK as shown below:
import com.appsflyer.AppsFlyerLib
import com.appsflyer.AFLogger;

AppsFlyerLib.getInstance().init(<DEV_KEY>, null, this);
AppsFlyerLib.getInstance().setLogLevel(AFLogger.LogLevel.DEBUG);
AppsFlyerLib.getInstance().start(this);

Initialize RudderClient

val rudderClient: RudderClient = RudderClient.getInstance(
    this,
    <WRITE_KEY>,
    RudderConfig.Builder()
        .withDataPlaneUrl(<DATA_PLANE_URL>)
        .withFactory(AppsFlyerIntegrationFactory.FACTORY)
        .build()
)

How to get AppsFlyer ID

Use this snippet after initialising RudderClient

rudderClient.onIntegrationReady("AppsFlyer") {
    val appsflyerId = AppsFlyerLib.getInstance().getAppsFlyerUID(this)
    println("=====================================================")
    println("AppsFlyer ID: $appsflyerId")
    println("=====================================================")
}

Send Events

Follow the steps from the RudderStack Android SDK.

Contact Us

If you come across any issues while configuring or using this integration, please feel free to start a conversation on our Slack channel. We will be happy to help you.

rudder-integration-appsflyer-android's People

Contributors

1abhishekpandey avatar ameypv-rudder avatar arnab-p avatar arnabp92 avatar chryssaaliferi avatar desusai7 avatar itsdebs avatar web-flow avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

rudder-integration-appsflyer-android's Issues

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.