Firebase Cloud Functions – Issues with Promises

When running my Firebase Cloud Function orgNew there seems to be something not working correctly with my promises and the order in which the code is executed. Console log (shortened): 1: Function …

I can`t read the data after I update my rules on firestore (React Native)

the rules I set is allow read: if resource.data.uid == request.auth.uid; how I call it is like this return async (dispatch) => { await firebase .firestore() .collection(“…

How do I display all of the images from my Firebase Storage in React Native without needing image names?

Hello i am trying to figure out how to display all of the images in a folder i have in Firebase Storage called “VerifiedPhotos”. I don’t want to reference them by image name like I did below …

Cannot read property ‘reduce’ of undefined data from firebase

I am trying to git the totalBalance of but i face error Cannot read property ‘reduce’ of undefined and in the same time i can iterate on the clients of the component the code is the below //redux and …

DId firebase createUserWithEmailAndPassword() change the return value?

I have been using this code for a year now: firebase.auth().createUserWithEmailAndPassword(textUser, textPassword) .then(function(user){ console.log(‘uid’,user.uid) //Here if you want you can …

How can I count in Firebase the collections in a document

I know how to count how many Documents are in a collection in Firebase but how does it work the other way around. I have several collections in a document and I need to find out how many. (In my …

How to redirect user to another page after successfully SignUp or SignIn in Firebase and HTML

I need to redirect user to another page after successfully SignIn or Signup in HTML and Firebase I have SignIn.html and SignUp.html and inside Home folder Home.html After successfully SignIn or SignUp …

How to access field on an array in cloud function?

I have this cloud function that creates a new document every time I have a new chat. I am trying to access the values on the messages array, but I got undefined on the console log. here is my document …

React Native Firebase Array Query to do ArrayContains with AND operation

I have group collection. In each group document, I store which users are associated with the group via members array field in firebase. Eg: user1 & user2 are in xyz(id) group and I would like to …

Firebase authentication in ReactJS project – user null inside onAuthStateChanged

I’m tearing my hair out trying to setup email/password authentication through firebase. I’ve got my firebase configuration setup like so // Firebase App (the core Firebase SDK) is always required and …