https://github.com/rudderlabs/rudder-integration-lotame-android
RudderStack's Native SDK Integration support for Lotame.
https://github.com/rudderlabs/rudder-integration-lotame-android
android lotame rudderstack
Last synced: 7 days ago
JSON representation
RudderStack's Native SDK Integration support for Lotame.
- Host: GitHub
- URL: https://github.com/rudderlabs/rudder-integration-lotame-android
- Owner: rudderlabs
- License: other
- Created: 2020-06-03T21:47:09.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-10-18T08:27:09.000Z (6 months ago)
- Last Synced: 2025-10-31T19:17:01.842Z (6 months ago)
- Topics: android, lotame, rudderstack
- Language: Java
- Homepage: https://www.rudderstack.com
- Size: 234 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.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 Lotame with RudderStack's Android SDK
1. Add [Lotame](https://www.lotame.com) as a destination in the [Dashboard](https://app.rudderstack.com/)
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.+'
implementation 'com.rudderstack.android.integration:lotame:1.0.4'
```
4. If your lotame urls follow the HTTP protocol, you need to allow the ClearTextTraffic for your App. Add `android:usesCleartextTraffic="true"` in your `` tag of your app's `Android Maifest` file.
After adding the above text, the file would look something like below:
```
...
```
## Initialize ```RudderClient```
Add the following code under the `onCreate` method of your `Application` class.
```
val rudderClient: RudderClient = RudderClient.getInstance(
this,
WRITE_KEY,
RudderConfig.Builder()
.withDataPlaneUrl(DATA_PLANE_URL)
.withFactory(LotameIntegrationFactory.FACTORY)
.build()
)
```
## Register your `onSync` callback
You can get notified about the Pixel syncs by registering a callback. The code snippet below shows the example:
```
rudderClient!!.onIntegrationReady("Lotame Mobile") {
(it as LotameIntegration).registerCallback { urlType, url ->
// urlType => "bcp", "dsp"
// url => complete url with all values replaced
println("LotameSync: $urlType : $url")
}
}
```
## Send Events
Follow the steps from our [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.