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-ios

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 iOS SDK

NOTE: Rudder-Firebase version 3.4.0 is compatible with the FirebaseAnalytics version 10.28.0.

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

  2. Rudder-Firebase is available through CocoaPods. To install it, add the following line to your Podfile and followed by pod install:

pod 'Rudder-Firebase', '~> 3.4.0'
  1. Download the GoogleService-Info.plist from your Firebase console and put it in your project.

Initializing RudderClient

Put this code in your AppDelegate.m file under the method didFinishLaunchingWithOptions

RSConfigBuilder *builder = [[RSConfigBuilder alloc] init];
[builder withDataPlaneUrl:DATA_PLANE_URL];
[builder withFactory:[RudderFirebaseFactory instance]];
[builder withLoglevel:RSLogLevelDebug];
[RSClient getInstance:WRITE_KEY config:[builder build]];

Setup the sample iOS app

  1. Make a copy of the SampleRudderConfig.plist into the RudderConfig directory and rename it to RudderConfig.plist.
  2. Fill the required details e.g., WRITE_KEY and PROD_DATA_PLANE_URL.
  3. Start sending the events

Sending Events

Follow the steps from the RudderStack iOS 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.