Firebase admin isn't writing to the database.  I am instantiating the database:  var db = admin.database();   Then setting up a reference to the table I want:  var systemsRef = db.ref("systems/");   I then have a function to check if the...
I keep having these warnings in the Firebase Logs Console: "FIREBASE WARNING: Invalid query string segment:"  I checked everything but I can't find some reasons.  Do you have any ideas ?  Configuration  { "name": "functions&#...
The issue  I'm trying to retrieve the document reference from a query.  My code returns undefined.  I can get the path by extracting various parts of documentSnapshot.ref, but this isn't straightforward.  What I'd like to return is a refe...
I want to use onCreate method instead of onWrite for the sake of efficiency but I face that error:     functions.database.ref(...).onCreate is not a function.   However, there seems to be a function as mentioned in the doc https://firebase.google.com...
I am reading how to mock google cloud functions for firebase and have issues of properly mocking the following code:  const admin = require('firebase-admin'); admin.initializeApp(functions.config().firebase); var db = admin.firestore();   The...
I am pretty new Cloud Functions for Firebase and the javascript language. I am trying to add a function every time a user created to write into the database. This is my code:  const functions = require('firebase-functions'); const admin = req...
I'm getting this error in my terminal:  @firebase/database: FIREBASE WARNING: {"code":"app/invalid-  credential","message":"Credential implementation provided to .  initializeApp() via the \"credential\" proper...
I would like a Google Cloud project A (project-a-id) to access the firestore data of another Google Cloud project B (project-b-id). For the same I added project A default service account viz. [email protected] in the IAM of pro...
Getting this error repeatedly. Error#1      { Error: fcm.googleapis.com network timeout. Please try again.     at FirebaseAppError.Error (native)     at FirebaseAppError.FirebaseError [as constructor] (/user_code/node_modules/firebase-admin/lib/utils...
I have client-side login on my app which is working just fine. Now I need to pass the clients UID to Node.  Found this Verify ID Tokens in Firebase docs, but i just don't know how would i actually do this part: "Send token to your backend via...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.