Multiple Firebase apps in one react native project - firebase

Is it possible to use several Firebase projects for Firebase Cloud Messaging in one application?
In my project I use rnfirebase and they say that
Currently, the native Firebase SDKs only provide functionality for creating secondary apps on the following services:
App Check.
Authentication.
Realtime Database.
Cloud Firestore.
Cloud Functions.
Cloud Storage.
ML.
Installations,
Remote Config.
That is, FCM is not in this list. Maybe someone knows how to substitute different google-services.json in real time.
Four firebase apps with cloud messaging, which work

firebaser here
Currently, you can only integrate one FCM project in an app. The token generated in the app will only work to that certain project.

Related

Flutter Web and Firebase with Multi Environment

I started a Flutter Web project and used Firebase Auth, Firestore, Hosting, Functions and Storage. I have two different Firebase project for this app; one of them is for development, the other of them is for product. How can I manage this environments like Android Product Flavor or iOS Schemes?
When I searched on Google, I saw Firebase Environment and used it, but it is not clear for me. For example, if I manage this situation with Firebase Environment, how can I understand which firebase project is used in dart code and change some of codes according to flavor?

why use node.js in flutter??? and what's difference between not using node.js and using node.js?

I just wonder why flutter application using node.js??
I make mine only flutter and firestore but so much fcm in flutter docs teach me using node.js!
so I want to know what is node.js and why need to nodes in flutter.
I think just server is firebase // view and backend is flutter
You need node to communicate to your firebase server, forming an API endpoint you can call in your flutter app. So technically node.js is more of backend environment code.
You can use the Firebase as your backend or you can choose to make your own backend creating an API. If you choose to create your own backend, there aren't differences to Flutter if that API will be developed using NodeJS / Dotnet / Django or any other framework.
The choose between your own backend or Firebase will depend of your project. Firebase is very scalable but you need to see the price of this, if your project becomes something big.

flutter authentication: multiple flutter apps in one firebase project

I have one Firebase project with two android apps
I use the same databases and everything but I want to use different authentication for each one of them.
Is there any rules for the authentication feature or what should I do to implement this?

how do i unlink a google cloud platform project from firebase

I am working on firebase and google cloud platform, recently I linked my google cloud project with firebase, now I want to unlink it from firebase. How would I do that?
It's not really a "link". When you import a GCP project into the Firebase console, all you've done is import Firebase APIs and services into that project. If you don't want to use those APIs, then there's no problem. You won't be billed for APIs you don't use. If you want to disable the APIs in the Cloud console, then you're free to do so.

Firebase and Google Cloud projects consolidation

I've opened a Google cloud project with multiple GCE, SQL and storage instances, along with an android app linked to it, about a year ago. In addition I've had 2 Firebase projects, one for production and one for dev environments, that were of course not linked to my Cloud project.
Now that the new Firebase is here, I would like to link all these accounts.
I have imported my Cloud project to the Firebase console, but it has its own Firebase DB, I'm not able to link it to my actual Firebase DBs (projects)... I can see my App analytics and cloud messaging but not my Firebase data, as the two Firebase projects are still considered as other projects.
How do I link or consolidate all these accounts together, Cloud and Firebases? And if not all, what about only the production one into my Cloud project?
This is how my Firebase dashboard looks right now:
You can import your firebase.com app into a new Firebase project and you can separately import your Google project into a Firebase project. However, we do not support merging these 2 imported projects.
If you want to use Firebase Auth or Firebase Invites in your Firebase project and if you have your OAuth Client registered with another Google project, you can add the OAuth client ID of your Google project into your Firebase project.
#Aralizer, you should be able to use Analytics, Crash reporting etc on the project you import from firebase.com. This Firebase project can co-exist with your previous Google Cloud project for GCE, Cloud SQL etc. It seems like you may have registered an OAuth Client in the Cloud project that you want to reuse in the Firebase project. This is possible by whitelisting the Cloud project's OAuth client ID in the Firebase project. Check this helpcenter article for more details on how to do this: https://support.google.com/firebase/answer/6401008

Resources