An open API service indexing awesome lists of open source software.

https://github.com/rudderlabs/rudder-integration-leanplum-android

RudderStack's Native SDK integration support for Leanplum.
https://github.com/rudderlabs/rudder-integration-leanplum-android

android leanplum rudderstack

Last synced: about 1 year ago
JSON representation

RudderStack's Native SDK integration support for Leanplum.

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 Leanplum with RudderStack's Android SDK

1. Add [Leanplum](https://www.leanplum.com) as a destination in the [Dashboard](https://app.rudderstack.com/) and define `applicationId`, and `clientKey`. If you turn on the Development Environment flag, make sure to put your development key in `clientKey`.

2. Setup the Hybrid Mode of integration:

- Turning on the switch beside `Initialize Native SDK to send automated events` in the dashboard will initialize the LeanPlum native SDK in the application.
- Turning on the switch beside `Use native SDK to send user generated events` in the dashboard will instruct your `data-plane` to skip the events for LeanPlum and the events will be sent from the LeanPlum SDK.

3. Add these lines to your ```app/build.gradle```

```
repositories {
maven { url "https://dl.bintray.com/rudderstack/rudderstack" }
}
```
4. Add the dependency under ```dependencies```

```
// Rudder core sdk and leanplum extension
implementation 'com.rudderstack.android.sdk:core:[1.0,2.0)'
implementation 'com.rudderstack.android.integration:leanplum:1.0.2'

// leanplum core sdk
implementation 'com.leanplum:leanplum-core:5.9.0'

// gson
implementation 'com.google.code.gson:gson:2.8.6'
```

## Initialize ```RudderClient```

```
val rudderClient: RudderClient = RudderClient.getInstance(
this,
,
RudderConfig.Builder()
.withDataPlaneUrl()
.withFactory(LeanPlumIntegrationFactory.FACTORY)
.build()
)
```

## 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.