Issues in migrating Google Cloud Project to Firebase - firebase

I have projects available in google cloud which i want to import on firebase. On firebase console, none of the project got listed in dropdown of adding project. On further investigation, I got to know that a google's below API is getting crashed.
https://mobilesdk-pa.clients6.google.com/v1/projects:listMigratable?key=
Status Code: 500
I have filed a ticket on firebase support as well. Meanwhile, can anyone have a workaround or any solution to help me in proceeding forward?

Related

Migrating SafetyNet to Play Integrity API for Firebase

I'm developing a flutter application which uses Firebase as its framework. One of Firebase's features that we use is App Check. I've been using SafetyNet for my Android App Check, but recently I've gotten an email from Google that states that SafetyNet will be discontinued and developers are recommended to migrate to Play Integrity. The problem is, I don't know how to do so, I've tried changing it directly from Firebase Console, and now both my Play Integrity and SafetyNet option is checked, last time it was only SafetyNet. Are there any steps that I might've missed? Any help would be greatly appreciated.

Unity. Do I really need to add Firebase analytics *and* crashlytic sdks?

I want to add only firebase crashlytics to my game.
The firebase guide tells you to add the add the package FirebaseAnalytics.unitypackage
and then packages for any other firebase features you want.
So if I follow the guide I should add FirebaseAnalytics.unitypackage and FirebaseCrashlytics.unitypackage
However, all the packages are about the same size; 90MB, and looking into them, they contain a lot of the same stuff. Eg they all contain the google play services resolver. It looks like each one can function on its own.. and when I import just crashlytics I dont get errors and can build a build that runs.
Crashlytics should be able to run in apps that don't also include Analytics. If you're having trouble making that work, edit your question to show how you included the package, and details about the problem you get.
If Analytic is present in the app, Crashlytics may use that to report certain events. So you'll be missing features such as crash-free statistics, the Latest Release report, and Breadcrumbs.
For more info, see:
the Firebase documentation on adding crashlytics to your app
the Firebase blog post on the Crashlytics relaunch, specifically this section:
Combining analytics data and crashes helps you unlock additional insights into your app’s stability. The Firebase Crashlytics SDK works seamlessly with the Google Analytics SDK to provide features such as crash-free statistics, the Latest Release report, and Breadcrumbs. With Breadcrumbs you can see the steps a user took that led to a crash. This insight helps you reproduce and fix issues quickly. Google Analytics replaces Fabric's legacy analytics engine, Answers, so we encourage you to add Google Analytics to your apps.

Firebase Storage Image Not Showing

Firebase Storage Image not showing for 2/3 days. I have some published apps, inside those apps have some Images showing from Firebase Storage and now suddenly it is not showing/viewing. I have also checked those images from Browser > Firebase Console > Storage, but it is not showing image preview and shows: "Error loading preview". But My Firebase Firestore data is showing without any error. I checked Storage Quota, no issue about that. My Firebase Plan is "Blaze" Pay as you go.
Now, what steps should I take to solve the problem? Can anybody help me regarding this issue?
This is not firebase problem, i already contacted with firebase team.
This problem happening from 29th December from Bangladesh.
I think this is an mistake from BTCL, now you can use VPN but this is not solution,
We have to wait or have to communicated with BTCL for solve this issue.
I even couldn't deploy firebase functions using firebase-tools from Bangladesh.
So I contacted firebase team and seems they have nothing to do as this is a country specific problem.
For now I am deploying functions from a headless remote environment.
This issue needs to be sort out either BTRC or google.

Does Firebase Real-Time DB now explicitly require Google Play Services? [duplicate]

This question already has answers here:
Which firebase services require google play services on Android?
(4 answers)
Closed 4 years ago.
Background
I have an older app that still runs properly and is based on an old version of Firebase using the Real-time database functionality.
It runs on my emulator that does not have Google Services available.
Attempting To Upgrade To New Firebase
Now, I'm attempting to upgrade that code and I'm running on an emulator image that does not have Google Play services available.
Installed Firebase Via Android Studio Tools...Firebase...
I did the installation via the built-in tools from Android Studio (following the latest docs from Firebase).
The Problem
Every time the new code based on the latest version of Firebase attempts to call the following line of code I get an error (follows):
FirebaseDatabase fbd = FirebaseDatabase.getInstance();
Error Message
I get the following error:
Default FirebaseApp is not initialized in this process . Make
sure to call FirebaseApp.initializeApp(Context) first.
I'm Already Making That Call
However, I am successfully making the call to FirebaseApp.initializeApp(Context) previous to that line of code -- I've stepped thru via debugger.
Unsure About Google Services
I've seen that some say you have to add a reference to the Google Services but I'm not sure why the Firebase docs don't mention that and the built-in Android Studio tool didn't add it.
Can you point me to a definitive place in the docs where it says you need Google Services? Has anyone experienced this? Does anyone know for sure if Google Services are required?
Ok, I looked more closely at the Firebase docs (https://firebase.google.com/docs/reference/android/com/google/firebase/database/FirebaseDatabase.html#getInstance(java.lang.String))
Here's a snapshot of the info:
I'm adding that because of that odd Also: Google Play Services item. It's a link that does nothing. It isn't very helpful, but
I'm assuming it means that you do indeed need Google Play Services to be available.
This situation is odd for another reason also, and that is because the call to FirebaseApp.initializeApp(this); succeeds without error even though you can basically do nothing after that, since you will have a dependency upon Google Services for the core functionality.

Expo and react-native-firebase

I'm trying to integrate Firebase into my expo app using the react-native-firebase framework which has several advantages over the regular firebase package when it comes to react-native apps.
However, I'm running into difficulties since the instructions say I must add the GoogleService-Info.plist to ios/[YOUR APP NAME]/GoogleService-Info.plist, and expo apps don't have an ios folder from what I understand.
Am I pretty much screwed or is there a solution for this?
As the react-native-firebase documentation says, you need to eject your app if you want to use this library with expo. Be mind that eject action is not reversible. More info here and here and here.
If you use Expo and would like to use this package, you'll need to
eject. If you do not want to eject, but wish to make use of features
such as Realtime Database (without offline support) & Authentication,
you can still use the Firebase Web SDK in your project.
Today, you can't have the Firebase react-native sdk with expo. And this is not planned according to: https://expo.canny.io/feature-requests/p/full-native-firebase-integration.
So you have to play only with the javascript sdk from Firebase.
Cloud Firestore is new, it will be better for the javascript sdk for offline and sync.
The author of this thread: Fresh Detached Expo + RNFirebase not running on Android has managed to get it working with the Detached ExpoKit - so it's not a full ejection and keeps the expo features.
I have asked for the steps he took so we can see about getting something added to our docs and possibly a Detached ExpoKit version of our starter app.
See the expokit detaching docs for information about ExpoKit.
It's in progress --
https://blog.expo.io/using-firebase-in-expo-e13844061832
Using Firebase in Expo
And how we plan on adding it to the client 😁
We are super excited to announce that we will be rolling out a suite of Unimodules that will provide you with easy access to native Firebase features! initially you will only be able to use these in a detached ExpoKit App. But over time we will be working to add these to vanilla Expo.
TL;DR
Here are the modules, you will need to detach to add them for now:
App/Core
Analytics
Authentication
Cloud Firestore
Cloud Functions
Instance ID
Performance Monitor
Realtime Database
Cloud Storage
Remote Config
Firebase Cloud Messaging
Remote Notifications
Dynamic Linking
Invites
Crashlytics
Also TL;DR
Here is a boilerplate: https://github.com/EvanBacon/expo-native-firebase
Update 02-12-2021
Guys expo's eas-build is now public. You can add custom native codes and use react-native-firebase. Here is the link to a youtube tutorial. The video is short and super easy to follow. Here is the link to the docs
Previous answer
If you are using Firebase using the mobile configuration, it does not work, but it worked smoothly when I tried the web configuration. Here is the youtube tutorial. Watch from 38:20 to set up.
I managed to get a working set of react-native with redux, firestore and expo. See Code example at Github.
But it costs the offline-persistence (see https://github.com/firebase/firebase-js-sdk/issues/436). So from my point of view it costs performance, because i need to be online to get a full working app with firestore and react-native.

Resources