Category "google-cloud-firestore"

Unexpected getting cloud_firestore/permission-denied in production sometimes

My Firestore rule: match /app/info { allow read; } My code: FirebaseFirestore.instance .collection('app') .doc('info') .snapshots()

How can I update more than 500 docs in Firestore using Batch?

I'm trying to update a field timestamp with the Firestore admin timestamp in a collection with more than 500 docs. const batch = db.batch(); const serverTimest

Firestore dynamically update security rules

Imagine we have Chat application and in this application, we have many rooms, some private and some for everyone. Every room has an admin who can manage users (

Displaying data from Firestore into React Native FlatList did not work

I'm using the React Native FlatList module to show data that is stored in an firestore collection. This data should rendered into an content box with an colored

How to connect to Cloud Firestore DB with .net core?

So far all the examples of using Google Cloud Firestore with .net show that you connect to your Firestore db by using this command: FirestoreDb db = FirestoreD

No such module 'FirebaseFirestore'

Trying to build my app but can't it always gives me problems with FirebaseFirestore. It seems to recognize FirebaseStorage and Firebase fine but not FireStore.

Upload image picked from Flutter web to firebase storage and to Firestore

I was able to picked up image from flutter web with the code: Uint8List uploadedImage; _startFilePicker() async { InputElement uploadInput = FileUploadI

Why can't I display my data from firebase?

I have a problem because I can’t display my data from firestore. I want to take my id from the xml. I’ve written this with help from a video and whe

Firebase Storage await uploadTask.onComplete outdated

Im using this code. The error message is the following: error: The getter 'onComplete' isn't defined for the type 'UploadTask'. (undefined_getter at [chatneu] l

Can Firestore update multiple documents matching a condition, using one query?

In other words, I'm trying to figure out what is the Firestore equivalent to this in SQL: UPDATE table SET field = 'foo' WHERE <condition>` Yes, I am a

Deploy error Cloud Functions - Firebase Deploy

Error returning when executing the firebase deploy command. I tried some configuration options, but none worked. Error Firebase Deploy === Deploying to '###'...

Query firestore database for document id

I want to query a firestore database for document id. Currently I have the following code: db.collection('books').where('id', '==', 'fK3ddutEpD2qQqRMXNW5').get

Is It Possible To Get The ID Before It Was Added?

I know that in Realtime Database I could get the push ID before it was added like this: DatabaseReference databaseReference= FirebaseDatabase.getInstance().ge

firestore: PERMISSION_DENIED: Missing or insufficient permissions

I am getting the Error gettingdocuments.com.google.firebase.firestore.FirebaseFirestoreException: PERMISSION_DENIED: Missing or insufficient permissions.

what is the recommended Cloud Firestore location for Egypt and the middle east countries?

I was starting a new firestore database and actually I didn't know what GCP resource location that's suitable for my target audience in Egypt. Any help will be

Trying to test firebase rules with emulator

I'm trying to setup my testEnvironment for testing my firestore rules with my locally running emulator. When i try to access testEnv it is undefined, and I gues

Why is the response (payment Intent) after completing the payment undefined?

myReactApp/functions/index.js const functions = require("firebase-functions"); const express = require("express"); const cors = require("cors"); const stripe =

Flutter :The shrinker may have failed to optimize the Java bytecode

I'm trying to integrate cloud firestore to and android app but all I get is this error every single time Launching lib/main.dart on Android SDK built for x86 i

Could not reach Cloud Firestore backend - React native Firebase v9

I saw many questions on SO regarding this issue and none of them was answered (or the solution doesn't work), I don't know why. People are having this error con

Either zero or 2 or more [DropdownMenuItem]s were detected with the same value

I am new to Flutter but I am trying to create a DropdownButtonFormField and it is not working. I am getting an error that says I have duplicate values. What is