Coder Social home page Coder Social logo

rudder-integration-firebase-swift's Introduction

The Customer Data Platform for Developers

Website · Documentation · Community Slack


Integrating RudderStack iOS SDK with Firebase

This repository contains the resources and assets required to integrate the RudderStack iOS SDK with Firebase.

For more information on configuring Firebase as a destination in RudderStack and the supported events and their mappings, refer to the Firebase documentation.

Important: This device mode integration is supported for Firebase v8.15.0 and above.

Step 1: Integrate the SDK with Firebase

  1. Add Firebase as a destination in the RudderStack dashboard.
  2. Download the GoogleService-Info.plist from your Firebase console and place it in your project.
  3. RudderFirebase is available through CocoaPods. To install it, add the following line to your Podfile:
pod 'RudderFirebase', '~> 1.2.0'
  1. Run the pod install command.

Step 2: Import the SDK

Swift

import RudderFirebase

Objective C

@import RudderFirebase;

Step 3: Initialize the RudderStack client (RSClient)

Place the following in your AppDelegate under the didFinishLaunchingWithOptions method.

Objective C

RSConfig *config = [[RSConfig alloc] initWithWriteKey:WRITE_KEY];
[config dataPlaneURL:DATA_PLANE_URL];
[[RSClient sharedInstance] configureWith:config];
[[RSClient sharedInstance] addDestination:[[RudderFirebaseDestination alloc] init]];

Swift

let config: RSConfig = RSConfig(writeKey: WRITE_KEY)
            .dataPlaneURL(DATA_PLANE_URL)
RSClient.sharedInstance().configure(with: config)
RSClient.sharedInstance().addDestination(RudderFirebaseDestination())

Step 4: Send events

Follow the steps listed in the RudderStack iOS SDK repo to start sending events to Firebase.

About RudderStack

RudderStack is the customer data platform for developers. With RudderStack, you can build and deploy efficient pipelines that collect customer data from every app, website, and SaaS platform, then activate your data in your warehouse, business, and marketing tools.

Start building a better, warehouse-first CDP that delivers complete, unified data to every part of your customer data stack. Sign up for RudderStack Cloud today.

Contact us

For queries on configuring or using this integration, start a conversation in our Slack community.

rudder-integration-firebase-swift's People

Contributors

ameypv-rudder avatar arnab-p avatar chryssaaliferi avatar pallabmaiti avatar shwetalodhe123 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rudder-integration-firebase-swift's Issues

Firebase is not updated to the last version

In our application we have to use the latest version of Firebase but the rudder Firebase version is 9.2.1, what should we do, I wanted to know what is the problem, and why you didn't use the updated version.

Track method not called in RudderFirebaseDestination

I have added Firebase as a destination in my project, but it seems that the track method in RudderFirebaseDestination is not being called. As a result, I am unable to see any events in Firebase.

I have already tested the Firebase implementation separately, and everything appears to be functioning correctly. I can see crashes and debug events in Firebase's debugView. However, when I track events using Rudder, they do not appear in the Firebase panel.

note: I can see the events in facebook manager.

Here is the code snippet I used to add the Firebase destination after confining rudder:

RSClient.sharedInstance().addDestination(RudderFirebaseDestination())

I have followed the documentation provided and ensured that I have implemented the necessary steps correctly.

Any assistance in resolving this issue would be greatly appreciated. Thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.