Category "google-cloud-firestore"

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

Flutter Firestore ) Bad state: field does not exist within the DocumentSnapshotPlatform

I am implementing the project by referring to the sample code before firestore 2.0. I'm going to bring the last document of the Chat collector to StreamBuilder.

Flutter: How do I send a push notification from the device itself?

I'm new to programming and I'm developing an app in which the user is suppose to get a notification 30 minutes before an event that's scheduled on the app. The

How to populate firebase reference type in flutter

This is how my firebase firestore data look like You can see that I have the person data field which is a reference type. And this is how I retrieve data from

The getter 'documents' isn't defined for the type 'Object'

I have a collection called status in Firebase. I'm trying to pull data from here. However I am getting this error. I tried some solutions but I still get the sa

Setting up a counter in a document and then retrieve it using Firestore: Would this be alright or would this be too expensive?

Under the orders collection, I created a document called counts which would store the counts for the status of the orders: I then created a function to increme

I have an array of items inside a list from firebase. I want to display those array elements inside my flutter app but I have failed

Inside of my firebase collection (which is a list elements) I have arrays as well. I am failing to display the elements inside the array in my flutter app. Here

Flutter - Load Google Map Markers from Firestore

I am developing a Flutter app and one of the functions is a map with locations. I made a database with the locations in Firestore but I am unable to load the ma

How do I fix "Could not reach Cloud Firestore Backend" error?

I'm build a simple app and I keep getting this error: "W/Firestore: (23.0.1) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't resp

Flutter snapshot lost data after update in offline

I created a simple application that displays a list of movies from Firestore DB. When you tap the movie, the number of likes increases by one. The problem occur

In Firestore security rules, does doing request.resource.data() account for first time writes?

match /databases/{database}/documents { match /users/{theuser=**} { match /prescriptions/{prescriptions} { allow read, write: if

react native e-library app error-failed to resolve dependency 'firebase'

I am in the middle of creating a simple library app. Here, I am trying to use firestore database in firebase console. I am coding this on the expo snack editor.

Firebase v9 modular - How do you use onSnapshot to return an observable?

I'm trying to use Firebase v9 modular version and I'm confused as to how to use onSnapshot. I'm trying to execute a query and listen to the documents. Following

Get contacts which have same phone number stored in phone number list in firestore

this is my first time trying Firestore. I have a collection named users, where every user is a UID and every user has fields (name, phone, and contacts (array))

FirestorePagingAdapter crashes when scrolling in version 8.0.1

After updating FirebaseUi from implementation 'com.firebaseui:firebase-ui-firestore:8.0.0' to implementation 'com.firebaseui:firebase-ui-firestore:8.0.1' Firest

Invalid document reference. Document references must have an even number of segments, but cities/SF/landmarks has 3

Hello I am following the firestore tutorial here https://firebase.google.com/docs/firestore/query-data/queries#web-version-9_14 First they instruct me to seed t

Firestore & React: Update the Same State in Multiple Firestore onSnapshot Listeners

We are building a chat app using Firestore and React. Users should be able to up/down-vote each other's messages. We have two Firestore collections: messages: c