Integrating React Native Firebase into existing iOS app with Firebase - react-native-firebase

We are currently a brownfield iOS app (with parts of the app in React Native in v0.61).
If we are already integrating Firebase Crashlytics/Analytics natively via Cocoapods, how would we go about integrating RN Firebase for the React Native side?
Do we need to remove the existing pods and follow https://invertase.io/oss/react-native-firebase/v6/app/ios instead?

When integrating RN Firebase (invertase.io, v6, iOS manual installation) into our brownfield iOS app that already has existing Firebase instance setup and operational, I removed the existing pod (pod 'Firebase/Core', '~> x.xx.xx').
And installed the RNFirebase pod (pod 'RNFBApp', :path => '../node_modules/#react-native-firebase/app').
After installation, the native iOS setup we had before worked as is.

Related

Expo React Native: There is no FCM API key configured for this project

I'm trying to setup push notifications for Android in my managed React Native Expo project. I have carefully followed the official guidelines Push-notifications overview and Using FCM for Push Notifications for Android.
I have created a new firebase project for my Android application. Then in the Cloud Messaging tab of the firebase project, I copied the Server Key (FCM API Key). I also downloaded the generated google-services.json into my Expo project.
Then I started a new EAS build. But when I run, from terminal, expo push:android:show, I'm getting the title error:
There is no FCM API key configured for this project
It turns out that the command expo push:android:show is deprecated.
Instead I should use eas credentials , select the android platform and follow the instructions to display all my keys and credentials, including the FCM API key

Working code for firebase phone auth using expo client?

Hi i am new to react native development. I am trying to authenticate users using firebase phone auth and expo. I tried all the codes on the internet but none of them worked. I am using expo-cli version 5.4.6 and npm version 8.10.0. Someone please post a working code so that i could just replace the firebase config. I had created a web app in firebase project and set mode of auth as phone. Thanks and regards

Cordova Firebase Remote Config Plugin vs. Web SDK

Firebase recently announced remote config for their web SDKs. In an app built with Cordova or Ionic, is there any feature that would justify using the cordova plugin for remote config instead of using the firebase sdk?
For example, I think that in the case of firebase analytics, it's better to use the cordova plugin because it's able to detect events such as app open and app close and I think the web sdk will not be able to track these events.

Can't init firebase on iOS in Unity without having an Android project

I've tried initializing Firebase on Unity for iOS app only, and I'm getting this error while running:
Unable to load options for default app ([/Users/yaniv/Downloads/21312111222/New Unity Project333/Assets/StreamingAssets/google-services-desktop.json, /Users/yaniv/Downloads/21312111222/New Unity Project333/Assets/StreamingAssets/google-services.json] are missing or malformed)
I know that for cross-platform apps, I usually download the google-services.json from the Firebase project settings, but in this case, I have no Android apps under this project (it's an iOS app only).
How can I prevent Firebase from request it?

Crashlytics from Fabric to Firebase

My ios application uses crashlytics and fabric. I wanted to migrate Crashlytics in firebase. During configuration I say that I have not crashlytics in my App. An get instruction how add crashlytics to my app. Now when I’m trying to return at the first step I’m getting an error “Action failed”. How can I link my Fabric account and firebase?
This help to migrate fabric to Firebase for ios Application
Step 1. Remove the Fabric initialization code.
We’ll first need to remove Fabric from our Xcode project settings.
Start by opening your app in Xcode.
Remove the Crashlytics Run Script Build Phase from your Xcode project’s Build Phases.
In your AppDelegate.swift, remove your Fabric initialization code by removing the import Fabric and import Crashlytics statements, as well as any Fabric.with() statements.
step 2:
To set up Firebase Crashlytics, follow along in the Firebase Documentation on Getting started with Firebase Crashlytics.
If your Podfile already contains pods for Fabric and Crashlytics, replace them with these version-specific pods:
pod 'Fabric', '~> 1.7.7'
pod 'Crashlytics', '~> 3.10.2'
Once you finish setting up Firebase Crashlytics, you can test your implementation by forcing a test crash in your app.
ios fabric to firebase migration
Go through above link it will helpful to you.

Resources