how do i unlink a google cloud platform project from firebase - 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.

Related

Multiple Firebase apps in one react native project

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.

How do I secure firestore database for my React Native app? [duplicate]

My Expo based React Native app worked perfectly fine until I added Firebase App Check.
I am using Firebase JS SDK and not React Native Firebase because it is suggested here for cross platform development.
Now how can I get and then send context.auth (link) to Firebase Functions? Or How can I send what Firebase Storage needs to functions manually?
Storage seems to work fine with AppCheck and AppAttest enabled if it's not Enforced but as soon as I enforce it, the app throws a an error every time there is image load from storage that User is not authenticated.
https://console.firebase.google.com/u/0/project/myapp-4fa75/settings/appcheck
As I understand, you can't because the JS SDK uses reCAPTCHA and native apps have to use either SafetyNet (Android) or DeviceCheck or App Attest (iOS).
I think the only option is using react-native-firebase instead of JS SDK.
You'd have to use config plugins as described here and then configure the app-check module as described here.

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?

where do I find firebase documentation for react native

I have installed firebase module for react native app
npm install firebase --save
what I'm looking for is the documentation for this module , I had searched many times but did't find any thing
The Firebase node.js client SDK is mostly a variant of the regular Firebase JavaScript client. You can find its documentation here: https://firebase.google.com/docs/web/setup. There is no specific documentation for React Native, although there is a blog post here: https://firebase.googleblog.com/2016/07/firebase-react-native.html
Firebase has not released any specific api for react-native. So you have to go with Web api of firebase to build apps in react-native.
https://firebase.google.com/docs/
Firebase has not released any specific api for react-native. So you have to go with Web api of firebase to build apps in react-native.

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