I am using import { Camera } from ‘expo-camera’; to take pictures. The taken picture is stored in the devicecache. so far so good. Now I am trying to upload this taken images to Google Firebase Storage using import { getStorage, ref, uploadBytes } from “firebase/storage”; The return of doing a photo is: Now I try to upload this like
Tag: google-cloud-firestore
Why do I see stale data even after invalidating my queries?
I have created a function which adds a specific item to my diary. 9/10 times everything works, which means that there is nothing wrong with the code? However rarely I add the item to my diary, but I don’t see the update values, even thought I activated queryClient.invalidateQueries() method, the value is updated on my server, because when I manually
How to return data from Firestore query to a FlatList
I’m new to React-Native and I am trying to return the array of data from the firstore query to the device screen where I can setDevices. I had this working using .get() and .then(), but I wasn’t getting the updated events, so I’ve moved to onSnapshot and seem to have data at the query end, but can’t get this set
Get data from sub-collections in Firebase Firestore using nested query
I have following data structure in firestore: flights [collection] user1 [doc] userFlights [sub collection] flight 1 flight 2 flight 3 user2 [doc] userFlights [sub collection] flight 1 flight 2 flight 3 In order to read the data from all userFlights subcollections i use nested query as shown below. My question: Would nested queries cause performance issues? Thanks in advance Answer
React native flatlist return only one item from firestore
I’m new with react native. I’m using a flatlist to render data from firebase (v9). Everything works well, there isn’t any error but, the list show only one item. After searching on differents topic, I think the problem is from the keyExtractor. But i don’t know how to solve it. The Key Extractor from the code : Here is the
Firestore Array of map not updating
So I’m working on a personal project to learn react-native and Firestore. I have a DB like this: And I want my code to add a new battery in the array batteries. The elements in the array are just a map{string, string} The problem is that when I update the array with a new brand that’s work but if I
All my requests to Firestore are classified as unverified because of AppCheck?
I enforced Firebase AppCheck for Firestore. Now, when I try to access data, I get an error: In Firebase, it says all my requests are unverified: This only happens for firestore. Is there something else I must do? I enabled AppCheck in my app using: I tried disabling AppCheck in the firebase console, and now all my requests are accepted.
Need help converting firebase 7.15.1 syntax into firebase 9.6.1 syntax
I am new to Firebase and I am following a tutorial that is a little bit outdated. I need help converting the code that they have into the newer version of it because I believe that the syntax has changed. They are using firebase 7.15.1 and I need the code to be in 9.6.1. Here is the 7.15.1 code: I
index.esm2017.js:370 Uncaught (in promise) FirebaseError: Missing or insufficient permissions in ReactJs
Complete error Get https://firestore.googleapis.com/google.firestore.v1.Firestore/Write/channel?database=projects%2Fnetflixclone-001%2Fdatabases%2F(default)&gsessionid=Il1qOZrt3xwI9HsitxL5j4_GdibS-ga9&VER=8&RID=rpc&SID=MgLGFVuM420X7FPF_SYqrg&CI=0&AID=0&TYPE=xmlhttp&zx=fhlml28c0sd1&t=1 net::ERR_FAILED 200 Rules(cloud firestone) seedData Code(data.js) firebase.prod.js class All other pages working fine Answer Your security rules just do not allow anyone to read or write to your database. If your set your rule to true as shown below, it should allow your to write: Now the problem is anyone on the internet can read or
How can I read data from firestore database in a schedule function? [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. The community reviewed whether to reopen this question 1 year ago and left it closed: Original close reason(s) were not resolved Improve this question I’m new to Firebase