google-cloud-firestore

Plot Multiple Marker on Map-view From Firestore Cloud Database?

杀马特。学长 韩版系。学妹 提交于 2020-03-04 18:38:36
问题 I had Stored longitude & latitude in Firestore Collection and using Marker I Showed it On Map. but only one marker is displayed on a map. I want to show multiple markers on a map using stored longitude & latitude in Firestore Collection. Here is my java code package part.time.job.v2; import android.os.Bundle; import android.view.LayoutInflater; import android.view.MenuItem; import android.view.View; import android.view.ViewGroup; import androidx.annotation.NonNull; import androidx.fragment

Firestore installation using Cocoapods

馋奶兔 提交于 2020-03-04 05:20:31
问题 I'm trying to install firestore in my project. when I'm trying to install that, Xcode displays fatal error: module map file '/Users/account/Documents/myapp/Pods/Headers/Private/openssl_grpc/BoringSSL-GRPC.modulemap' not found or sometimes another errors.... so I've spend so many of times (almost entire 2 days) to solve this problem, but nothing is actually working :/ (deleting derived data and Pods folder, pod deintegrate, pod install and update or cleaning build (Command-shift-k)). platform

Firebase Firestore snapshot read count

旧巷老猫 提交于 2020-03-04 05:06:08
问题 I am trying to optimize the number of reads my app makes on Firesbase and reviewing the way I use snapshot to monitor real time changes. Imagine I have a snapshot returning the 10 latest documents like the following: db.collection("cities") .where("state", "==", "CA"). .orderBy('dateadded', 'desc').limit(10) .onSnapshot(function(snapshot) { ... }) The doc says The snapshot handler will receive a new query snapshot every time the query results change (that is, when a document is added, removed

CollectionReference.doc() requires its first argument to be of type non-empty string

徘徊边缘 提交于 2020-03-03 12:08:49
问题 I have an ionic app trying to update the records in firebase. I keep on getting this error. Not sure what I am doing wrong. Error: Uncaught (in promise): FirebaseError: [code=invalid-argument]: Function CollectionReference.doc() requires its first argument to be of type non-empty string, but it was: a custom Object object FirebaseError: Function CollectionReference.doc() requires its first argument to be of type non-empty string, but it was: a custom Object object this is my update function.

CollectionReference.doc() requires its first argument to be of type non-empty string

我是研究僧i 提交于 2020-03-03 12:08:24
问题 I have an ionic app trying to update the records in firebase. I keep on getting this error. Not sure what I am doing wrong. Error: Uncaught (in promise): FirebaseError: [code=invalid-argument]: Function CollectionReference.doc() requires its first argument to be of type non-empty string, but it was: a custom Object object FirebaseError: Function CollectionReference.doc() requires its first argument to be of type non-empty string, but it was: a custom Object object this is my update function.

grab the current users first name cloud firebase swift

柔情痞子 提交于 2020-03-03 08:41:26
问题 I have a Firebase Auth that stores the users, but it also builds a collection of users in the Cloud Firestore database. I can grab the users first name, but the problem I have is that it is always the last user that was added. here is my function in swift func welcomeName() { let db = Firestore.firestore() if let userId = Auth.auth().currentUser?.uid { var userName = db.collection("users").getDocuments() { (snapshot, error) in if let error = error { print("Error getting documents: \(error)")

Filter data from Firestore whit angularfire

Deadly 提交于 2020-03-03 04:26:11
问题 I'm trying to filter data from Firestore with Angularfire's Querying Collection: https://github.com/angular/angularfire2/blob/master/docs/firestore/querying-collections.md I'm a bit confused with the approach. I have managed to filter through a button but I do not know how to reset or remove that filter once done. What is the correct way to filter and reset said filter? Here I have a stackblitz: https://stackblitz.com/edit/query-collections-in-angularfire2 My code so far: service.ts filterBy(

Firestore collection listeners enormous number of reads

ぐ巨炮叔叔 提交于 2020-03-01 03:24:33
问题 I am implementing Firestore data storage in one of my apps. I have a listener which follows updates in the "logs" collection like so: db.collection("logs").addSnapshotListener({ (snapshot, error) in guard let s = snapshot else {return} if s.metadata.isFromCache { print("LOG_C \(s.documentChanges.count)") return } print("LOG \(s.documentChanges.count)") // other code }) During testing, I've been uploading documents to this collection and then I removed all of them through Firebase console. So,

Firestore collection listeners enormous number of reads

旧街凉风 提交于 2020-03-01 03:24:05
问题 I am implementing Firestore data storage in one of my apps. I have a listener which follows updates in the "logs" collection like so: db.collection("logs").addSnapshotListener({ (snapshot, error) in guard let s = snapshot else {return} if s.metadata.isFromCache { print("LOG_C \(s.documentChanges.count)") return } print("LOG \(s.documentChanges.count)") // other code }) During testing, I've been uploading documents to this collection and then I removed all of them through Firebase console. So,

Populate react select options array with key value pairs from firebase collection

强颜欢笑 提交于 2020-03-01 03:00:51
问题 I am trying to use an options array in my react app, that uses react-select for the form and where the options are stored in a firebase collection. This all works fine when I define a const in the form with an array of options that I define with key value pairs, but I'm struggling to figure out how to replace that array with the collection stored in Firebase (Cloud Firestore). In my form, I currently have: const options = [ { value: "neurosciences", label: "Neurosciences - ABS 1109" }, {