Category "google-cloud-firestore"

Flutter Firestore: FirestoreBuilder with initial data

I'm making my first Flutter app and I encounter a problem and doesn't found any solution for it. I have a view where I render a Firestore document, and there is

How to ensure that a job is processed only once with Firebase

I am adding tasks as Docs in a Firestore collection. On the Backend, I have multiple NodeJs stateless instances that process these tasks. All the instances are

How to fix a null object reference on document snapshot

I have an program where the MainActivity display the name and the email of the user on top of the screen by using document snapshot that been stored in firestor

Firebase Read Data Issue (Bad state: Snapshot has neither data nor error)

Showing this problem every time suddenly, There was no issue at first. AVD can run app but in physical device its not even running Column( children: [

Continuously Retrieving data from stream builder

I am trying to implement stream builder with cloud firestore to retrieve field data. Here is the code: @override Widget build(BuildContext context) { retu

How to user filter with Firestore database in React Native?

I want to filter the firestore query to get all docs that do not contain a specific value. I used @react-native-firebase import firestore from '@react-native-fi

How to read data from nested array in Firestore

I have the below structure in my Firestore and I want to read data and store it in ArrayList like I have "amountArrayList" which will read data from the "transa

Android & Firestore - deducting value from an object

General context: The app I'm making manages activities with resources at hand. Once users create cases, the amount of materials each case needs is deducted from

How do I persist authentication state in my Kotlin firebase app?

I am building a kotlin app using FirebaseAuth and I want to add some custom rules to keep the user signed in for a time even if they are not using the app. All

Firebase error - SyntaxError: Named export 'SDK_VERSION' not found

I am building a web app using Next.js, and I am using Firestore as my database and thus Firebase, I am connecting to the database with the following code: impo

Swift saving decimal to firebase

I am trying to get my numbers as accurate as possible when the user enters the information for fuel purchased. I also would like it so in the example below a us

Firestore Recyclerview item doesn't update when doing add, update, delete data

I have a problem when doing add, update, and delete with my firestore recyclerview. The problem is my recyclerview item updating automatically when doing add, u

Firebase updates doesn't change in screen (flutter)

in my project, i have a button that will change some value from firebase, what i am facing is that although i am using setState and futureBuilder, the changes d

Swift for loop not waiting for firestore call to complete

I know firestore calls are async which means this will not work: private func removeUserSavedMomentFromAllUsers(moment: StoryMoment, completion: @escaping (

Deleting from Firebase with Document ID

I'm using Firebase to store and retrieve Data. I am able to successfully save data to Firestore but nothing seems to happen when I delete the user from the Fire

Function not found when converting string to boolean in Firestore security rules

I'm writing a security rule on Firestore that converts a string into a boolean. According to the documentation, we should be able to do it by using the bool fun

The method "collection" isn't defined for the type FirebaseStorage

I'm getting an error trying to store data in firestore. Another issue is using my emulator in android studio ( pixel 5 ) or even all my 4 connected devices. I c

How to delete a specific array element in firebase collection?

I have list of appointments stored in firebase collection, how can I delete a specific appointment ?

Null check operator used on a nullsis value flutter

I have problem with null check operator and i using firebase firestore or json model And i using the method to get data user from model But while i return he gi

How to refresh snapshot in flutter

I what to refresh home page so I create widget called RefreshWidget look like this import 'dart:io'; import 'package:flutter/cupertino.dart';