so I wrote a method to look through all the users in my firebase firestore database in react native and it looks like this: My data is listed by the user id, and one of the direct document fields is username. As you may tell, looking through every single one of the documents to find a matching username is very
Tag: firebase
Vue + Firebase: Functions useEmulator() ignored
I found this line of code in the Firebase docs firebase.functions().useEmulator(‘localhost’, 5001) that supposedly points your Vue app to the locally running emulator, but for some reason my project is ignoring said line of code and continues to call the remotely deployed function instead. Here’s what the relevant part of my @/plugins/firebase.js looks like: And then to call the botcheck
Firebase Database console.log() returning Null in Javascript
I hope to seek help from someone if possible. In the following code. Im trying to console.log() data from My Firebase reference as you can see in my code below. But the Console.log() is returning null instead of the values that are there in Firebase Realtime Database. I have also provided the code for adding which is working well. Please
how to remove duplicating values in rows
Is possible to remove duplicate values on html while updating in my firebase? Js codes: Answer You can try this:
I don’t understand why firebase.auth().signInWithEmailAndPassword(email, password) does not work
I am trying to make a login page using firebase, I am very new to this and have been reading through the firebase documentation to find a solution to my problem. This is my function using the firebase.auth().signInWithEmailAndPassword() method from the firebase auth SDK. This will run once in a blue moon, but will stop running after that. I click
react native & firestore – return vs console.log
I run into a little problem regarding firebase and probably something regarding async functions, Im still new to react-native and js, so I fail to resolve this error on my own. I have following code snipped: The firestore call and my database is alright, but the problem is within return and console.log() itself. The console.log() inside my function works perfectly
CORS problem – Access to fetch at *** from origin *** has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ – PUT request to Firebase
I have CORS problem, I am sending an put request for updating data – posts into Firebase with React: I have this notification error in console With post request – to add new posts everything is working fine. Has someone solution for this problem? Answer If you access your database over HTTPS, you need to access the JSON version of
Data rendered on the screen but has error on the console (Firebase with Vue): Uncaught (in promise) TypeError: Cannot read property ‘contents’ of null
I’m trying to get lesson.contents to render on the screen but I have some errors on the console. Here is the code (I’m using Firebase with Vue 3) Then I have this error: What I’m confused is that I’m still able to render lesson.contents on the screen: I’ve been trying a few hours trying to fix it but I could
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): My Firebase Cloud Function with some extra code (shortened): All the other functions are not included here because they aren’t involved in the problem. Any help is very much appreciated.
How to declare a variable from a firestore query?
this piece of code works when I press save in visual studio code. But If I refresh the preview page in the browser it shows me this error: Unhandled Rejection (FirebaseError): Function Query.where() called with invalid data. Unsupported field value: undefined I think that the problem is that I’m trying to declare the variable “showUrl” in the wrong way. The