42,767 questions
13
votes
2
answers
5k
views
CollectionGroupQuery but limit search to subcollections under a particular document
This is my database structure.
cities -> landmarks -> attractions(each one is a collection)
Query
List all attractions under a particular city.
Solution
Save city_id in each attraction document
...
8
votes
1
answer
5k
views
Cost optimization patterns for Firebase Cloud Firestore: fetching documents over collections
My goal is to optimize my app's architecture for cost when using Firebase Cloud Firestore. I understand Cloud Firestore's pricing model is on a per read/write basis. So I'm considering the following ...
5
votes
3
answers
298
views
GeoFire Swift Package Manager
I have tried to install GeoFire in Xcode/Swift.
According to the documentation (https://firebase.google.com/docs/firestore/solutions/geoqueries), this is done by adding "GeoFire/Utils" to ...
1
vote
2
answers
70
views
Firebase CloudFirestore rules only work after reopening the app
I'm using Firebase Authentication and Firebase Cloud Firestore for my Flutter project. But the rules I implemented in the Firestore only apply correctly after restarting the app, if the user just ...
0
votes
3
answers
189
views
how can i use serverTimestamp in angular/Fire in the compat mode
I have tried
import firebase from 'firebase/compat/app';
import 'firebase/compat/firestore';
const firestore = firebase.firestore;
this.form = this.builder.group({
items:[data.items, null],
...
1
vote
2
answers
146
views
Firestore collection -> doc -> collection returning empty list in flutter
QuerySnapshot profilesSnap = await _firestore
.collection('users')
.doc(userId)
.collection('profiles').doc("default").collection("incomeRecords")
...
Advice
1
vote
1
replies
72
views
Firebase OnSnapshot Costs
I am pretty new to firebase and firestore and I just discovered onSnapshot method. I was wondering how much read an onSnapshot query is worth. I don't understand if it read the whole collection and ...
0
votes
0
answers
99
views
ERROR FIREBASE XCODE: Support Files/gRPC-C++/gRPC-C++-dummy.m module map file
After installing modules shown below I keep getting this error, after trying to run an app in Xcode:
firebase: 11.1.0
@react-native-firebase/app: 23.7.0
@react-native-firebase/auth: 23.7.0
@react-...
2
votes
0
answers
75
views
Support CONNECT Flask server
I am trying to build a basic proxy server that's accessible from the internet to forward requests but also log them to Firebase database. I deployed my code on Google Cloud Run by creating an instance ...
1
vote
0
answers
102
views
Firestore only updates when accessed through a specific Android activity
I'm working on an Android app where users can add and remove restaurants from their favourites via the RestaurantPage activity. When I access the RestaurantPage activity from the UserFavourites ...
-2
votes
0
answers
29
views
Firestore only updates when the activity using it is accessed through a specific Android activity [duplicate]
I'm working on an Android app where users can add and remove restaurants from their favourites via the RestaurantPage activity. When I access the RestaurantPage activity from the UserFavourites ...
0
votes
1
answer
67
views
Firestore rule to allow users to pull only chats they are members of?
I have chat documents like the following:
{
members: ['abc','def'] // 2 element list of member UIDs
// some other chat metadata
}
In firestore, I have the following rules on my collection:
...
17
votes
3
answers
31k
views
Local module descriptor class for com.google.android.gms.providerinstaller.dynamite not found. Flutter Firebase
I just installed flutter with firebase but when adding to database I get the following error
İnstalled Google Play Services
Add in AndroidManifest(main)
-Add in AndroidManifest(user)
Local module ...
3
votes
2
answers
2k
views
Adding a line in podfile in an expo managed project
I am trying to use invertase/firestore-ios-sdk-frameworks in my project but it implies modifying directly the ios podfile.
Is there a way in an expo managed project to add a specific line to a podfile ...
0
votes
1
answer
1k
views
Is it a good idea to use an additional server with Firebase? [closed]
I've never used Firebase (or Firestore) before and I'm considering using it for my new mobile application. And I'm wondering if using Firebase only, without any additional server is a good idea. ...