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 ...
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-...
1
vote
2
answers
145
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 ...
-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 ...
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 ...
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:
[...
1
vote
0
answers
68
views
Not able to save document using React Native 0.81.4 & firebase
I am using react-native 0.81.4 CLI along with the following Firebase packages:
"@react-native-firebase/app": "^23.5.0",
"@react-native-firebase/firestore": "^23.5.0&...
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 ...
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
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, ...
0
votes
1
answer
99
views
Is there a way to handle situations where a user has blocked more than 10 users, so that the app doesn’t exceed Firestore’s not-in query limit?
func fetchNextPage() async {
guard !isLoading, !reachedEnd else { return }
isLoading = true
defer { isLoading = false }
let excluded = Array(BlockService.shared.blocked.prefix(10))...
0
votes
0
answers
159
views
Need help: "2 Unkown: Getting metadata from plugin failed with error: Could not refresh access token: Request failed with status code 500"
I have begun creating an application (Next.JS running on Firebase App Hosting) in Firebase Studio using Gemini and everything was working fine until now that I got a notification about "Client ...
0
votes
2
answers
185
views
Why does a decoded Date from Firebase have a small milliseconds offset in Swift?
I���m fetching a Date stored in Firebase (Firestore or Storage metadata) and decoding it in Swift, but I noticed the resulting value isn’t exactly what I expect.
// The date is created for midnight (00:...