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'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...
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...
I'm trying to download some images that I have uploaded to my Google Cloud Storage (aka into buckets). I'm unable to use the .ref() method on any of my const storage or const bucket because they are part of the admin SDK. The admin.storage ha...
I am fixing an error message which occurred, but it also used to work before. I am sending FCM notification with multiple tokens and am getting the following error  0|api      | 2020-2-11 13:26:26   [ExceptionsHandler] Exactly one of topic, token or...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.