Category "google-cloud-firestore"

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';

google.cloud.firestore_v1.client.Client expires

Using google.cloud.firestore_v1.client.Client to work with firebase database when intertacting with it after a while of non interaction i get : google.api_core

Expected a value of type 'Map<String, dynamic>', but got one of type 'Null'

I'm using flutter and managing data by cloud_firestore. I could send data to firestore, but now I'm Struggling with reading data. In firestore, data are stored

Assign a documents values as a <Type>

Making an Observable <Hero[]> out of a collection works perfectly and gives me access to all its documents, but I am unable to assign individual documents

Firebase SDK for Python: How to initialize App using apiKey?

There is the following code inside a Node.js project: Soon.app = initializeApp({ apiKey: "AIzaSyB4fcG8rtNWAiAtSmxmK3q3JLfMvtNCGP4", projectId: "soonaverse"

How to use nock in order to mock Firebase/Firestore in NodeJS?

I have a REST API which written in NodeJS. The REST API gets a file and information and then uploads the file to the drive and stores the information inside my

How to grab the current users "firstname" from firebase store. Swift 5

I did more trial and error and a bit of online research and this is what I came back with: func presentWelcomeMessage() { //Get specific doc

CocoaPods could not find compatible versions for pod "FirebaseFirestore":

I have a problem that I cannot seem to resolve. I have tried all of the solutions listed here previously, but nothing is resolving the error. I am building an a