42,767 questions
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 ...
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-...
510
votes
29
answers
480k
views
No Firebase App '[DEFAULT]' has been created - call Firebase.initializeApp() in Flutter and Firebase
I am building a Flutter application and I have integrated Firebase, but I keep getting this error when I click on a button either to register, login, or logout. I have seen other people have asked the ...
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 ...
2
votes
3
answers
145
views
Getting user properties from Firestore in Flutter app
I am trying to get several details from the collection "users" (eg, name, surname, nickname) stored in Firestore with the function getUserData() to pass them to other classes through the ...
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:
...
Best practices
0
votes
3
replies
73
views
How to not write a Firestore Converter for each type. (Firestore + Unity / C#)
I am using Firestore and Unity, I want to be able to serialize a Unity class, say Vector2Int so I write a Vector2IntConverter(FirestoreConverter<Vector2Int>).
When I upload my DTO, say:
[...
390
votes
33
answers
615k
views
firestore: PERMISSION_DENIED: Missing or insufficient permissions
I am getting the Error
gettingdocuments.com.google.firebase.firestore.FirebaseFirestoreException:
PERMISSION_DENIED: Missing or insufficient permissions.
for the below code on else statement
db....
262
votes
35
answers
578k
views
error NG6002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class
First time using firestore and I'm getting this error. It seems to be a problem with Ivy, from my research. I don't have a lot of experience modifying tsconfig.app.json, which is the direction I've ...
220
votes
27
answers
96k
views
Error: Failed to get Firebase project project-name. Please make sure the project exists and your account has permission to access it
I tried running firebase deploy like I have always done but came across this Error:
Error: Failed to get Firebase project project-name. Please make sure the project exists and your account has ...
0
votes
2
answers
132
views
Cannot connect to Firestore from Flutter project (Android)
I'm using Flutter in Visual Studio Code and Android Studio with a Pixel 6a emulator with Android 13 to preview the app.
Despite I could connect to other services of Firebase (Authentication, Storage, ...
1
vote
0
answers
78
views
Error in firebase cloud functions document trigger using V2 functions: Failed to decode protobuf and create a before snapshot
I am migrating my Firebase Cloud Functions project from v1 to v2.
Since Auth triggers are not yet available in v2, I still have auth triggers in v1 — but all my Firestore triggers are now v2.
All of ...