Skip to content

Privacy and Security focused Segment-alternative. Firebase Native SDK integration support.

License

Notifications You must be signed in to change notification settings

rudderlabs/rudder-integration-firebase-android

Repository files navigation

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.

With RudderStack, you can build customer data pipelines that connect your whole customer data stack and then make them smarter by triggering enrichment and activation in customer tools based on analysis in your data warehouse. Its easy-to-use SDKs and event source integrations, Cloud Extract integrations, transformations, and expansive library of destination and warehouse integrations makes building customer data pipelines for both event streaming and cloud-to-warehouse ELT simple.

Try RudderStack Cloud Free - a no time limit, no credit card required, completely free tier of RudderStack Cloud. Click here to start building a smarter customer data pipeline today, with RudderStack Cloud Free.

Questions? Please join our Slack channel or read about us on Product Hunt.

Integrating Firebase with the RudderStack Android SDK

  1. Add Firebase as a destination in the RudderStack dashboard.

  2. Open your project level build.gradle file, and add the following lines of code:

buildscript {
    repositories {
        mavenCentral()
    }
}
allprojects {
    repositories {
        mavenCentral()
    }
}
  1. Add the following dependencies under dependencies
implementation 'com.rudderstack.android.sdk:core:[1.17.0,2.0)'
implementation 'com.rudderstack.android.integration:firebase:3.1.0'

// Firebase
implementation platform('com.google.firebase:firebase-bom:[32.2.2, 33.0)')
implementation 'com.google.firebase:firebase-analytics'

Initializing RudderClient

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

Sending Events

Follow the steps from our RudderStack Android SDK repo.

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.