Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rudderlabs/rudder-integration-appsflyer-android
RudderStack's Native SDK integration support for AppsFlyer.
https://github.com/rudderlabs/rudder-integration-appsflyer-android
android appsflyer rudderstack
Last synced: 4 days ago
JSON representation
RudderStack's Native SDK integration support for AppsFlyer.
- Host: GitHub
- URL: https://github.com/rudderlabs/rudder-integration-appsflyer-android
- Owner: rudderlabs
- License: other
- Created: 2020-02-20T04:56:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-30T11:24:21.000Z (10 months ago)
- Last Synced: 2024-01-30T12:35:11.647Z (10 months ago)
- Topics: android, appsflyer, rudderstack
- Language: Java
- Homepage: https://www.rudderstack.com
- Size: 229 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# What is RudderStack?
[RudderStack](https://rudderstack.com/) 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](https://github.com/rudderlabs/rudder-server).
## Integrating AppsFlyer with RudderStack's Android SDK
1. Add [AppsFlyer](https://www.appsflyer.com) as a destination in the [Dashboard](https://app.rudderlabs.com/) and define ```devKey```
2. Add these lines to your ```app/build.gradle```
```
repositories {
maven { url "https://dl.bintray.com/rudderstack/rudderstack" }
}
```
3. 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
```4. 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(, null, this);
AppsFlyerLib.getInstance().setLogLevel(AFLogger.LogLevel.DEBUG);
AppsFlyerLib.getInstance().start(this);
```
## Initialize ```RudderClient``````
val rudderClient: RudderClient = RudderClient.getInstance(
this,
,
RudderConfig.Builder()
.withDataPlaneUrl()
.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](https://github.com/rudderlabs/rudder-sdk-android).
## Contact Us
If you come across any issues while configuring or using this integration, please feel free to start a conversation on our [Slack](https://resources.rudderstack.com/join-rudderstack-slack) channel. We will be happy to help you.