I have a Firebase HTTPs function. The function needs to read a value from a Firebase database based on the query parameter, and return a result based on this data.  The Firebase JS SDK says to do this using:  return firebase.database().ref('/us...
I have some trouble with Cloud function and firestore rules. I would like use cloud function with limited privilèges on Firestore and give only has access as defined in the Security Rules  It's working without problem on RTDB but not on Firestor...
Almost there, but for some reason my HTTP post request isn't firing and eventually the function timesout.  Completely beside myself and posting my code to see if anyone picks up on any noob moves that I'm completely missing.  NOTE:  the datab...
Thanks to Frank over at Firebase for helping me with this code. I just had this one issue with pushing the document id under Friends collection. I am not sure what is the best way to push const friendId and const accepted to friendsList array in the...
When I am importing more than 300 record in firebase using google cloud function than am getting error :    Error: function crashed out of request scope Function killed. Function execution took 31903 ms, finished with status: 'connection error...
i am using firebase function for creating notifications with cloud messaging. But i am always getting this Error:  Function execution took 60006 ms, finished with status: 'timeout'   but the notification works.   This is the code i am using i...
i have bunch of comments in Firebase database and i want to do some updates to the comments via Cloud Function ( this is simplified example, i will be doing some logic which does require Cloud Function ).  What i need to do is go through all the comm...
A 'days' node with more than 1 child isn't getting removed. How can I fix this issue?   I need to ensure that my promise bubbles up to the last then() on the top-level. So I need a return before collectionRef.once. But that return stateme...
I'm trying to send a notification to a user but for some reason i have an error. The error is "Function returned undefined, expected Promise or value".  I cant understand what does this line means, hope you guys can take a look at my code...
I have downloaded node.js, and have created the firebase-function files at the website directory (firebase.json, the functions folder and others).  If I was to write javascript cloud functions inside the project/functions/index.js file, it won't...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.