Firebase Functions - Log not reachable [duplicate] - firebase

As shown in the attached picture the console & tabs are no longer there! How can I restore them?

Those 2 tabs have been removed from Firebase console and a notice for the same was shown last month. You need to use the Google Cloud Functions console to view functions' logs and statistics.
Firebase console now shows the follow alert once:

Alternatively, you can log into the Firebase Console, go to the functions menu, and from the overflow icon displayed for each function, navigate to see its log (see the view logs option). It will save you some time.

Related

I am no longer able to see logs and health tabs in Firebase Cloud Functions console

As shown in the attached picture the console & tabs are no longer there! How can I restore them?
Those 2 tabs have been removed from Firebase console and a notice for the same was shown last month. You need to use the Google Cloud Functions console to view functions' logs and statistics.
Firebase console now shows the follow alert once:
Alternatively, you can log into the Firebase Console, go to the functions menu, and from the overflow icon displayed for each function, navigate to see its log (see the view logs option). It will save you some time.

flutter firebase dynamic links - wrong link is captured in app

I'm trying to capture the query paramters of a dynamic link.
In firebase console, the dynamic link is set as
myApp.page.link/myPage?par1=1,par2=2
The link that I build programmatically is:
http://myapp.page.link/myPage?st= Hi there &amv=0&apn=com.myapp&ibi=com.myapp&imv=0&link=https://myapp.page.link/myPage?par1=123&par=456
When I capture the link in the app, using FirebaseDynamicLinks.instance.onLink, I get
myApp.page.link/myPage?par1=1,par2=2
instead on the expected parameters par1=123, par2=456.
Flutter doctor has no errors
What can it be?
It looks like it might have been the fact that although I was using a device as an "emulator" in a debug mode.
Once using the "real" app from google store, the problem was gone :-)

How to fix firebase index issue?

While launching the react native expo app,got this prompt.
The query requires an index. You can create it here: https://console.firebase.google.com/v1/r/project/production-a9404/firestore/indexes?create_composite=Ck5wcm9qZWN0cy9wcm9kdWN0aW9uLWE5NDA0L2RhdGFiYXNlcy8oZGVmYXVsdCkvY29sbGVjdGlvbkdyb3Vwcy9jb2lucy9pbmRleGVzL18QARoMCghhdXRob3JJRBABGg0KCWNyZWF0ZWRBdBACGgwKCF9fbmFtZV9fEAI
When I clicked, the google console showing error as below.
But, this one worked earlier for a different collection and when trying for a new collection, getting this.
Please suggest.
It looks like you're signed in with an account that doesn't have permission to read or create indexes.
You should open the link from a user account that does have those permissions. When you do that, you'll see a screen that has all information prepopulated, and you can create the index with a single click (and some patience).

firebase init displaying incorrect default projects

I wish to use firebase functions. When I input firebase init in my current folder, it displays the incorrect default projects below. These projects displayed are from my google account 1. Currently I am logged into google account 2.
How would I get firebase init to display the correct default projects (the projects from google account 2)? These are the projects from my google account 2:
You first have to logout from the CLI with the logout command and then login again (command login) with your google account 2.
See the list of commands here: https://github.com/firebase/firebase-tools
I had this same issue and this was due to an environment variable that was stored on the system, you have to delete it, restart your machine and try the command again

How do you add a NODE to your database root in the Firebase Realtime Database Console?

The Console ONLY allows you to add a CHILD to the root. You cannot add a NODE in the Windows Console or in the Chrome Console.
So, if I got the question right, the following is desired:
/db-root
/newly-added-node-1
/newly-added-node-2
...
Had the same problem recently. There was also such a warning in the Firebase database console section:
Read-only & non-realtime mode activated to improve browser performance. Select a key with fewer records to edit or view in realtime.
If this is the case, you can simply add a node through the URL string. So, just visit:
http://console.firebase.google.com/project/${project-id}/database/${db-root}/data/${new-node-name}
And you'll be able to add data to the new node.
Hope this helps. Cheers!

Resources