Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
49 views

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 ...
999's user avatar
  • 21
0 votes
0 answers
25 views

How to create the rules and connect (read / write using the firestore database) from an android app? Google Firestore Editions Overview val db = Firebase.firestore val userData = hashMapOf( "...
Joseph Wambura's user avatar
0 votes
1 answer
47 views

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: ...
Isaac's user avatar
  • 284
-4 votes
0 answers
61 views

Common reasons Firestore queries feel slow: Missing Indexes Composite queries require indexes. Firestore will show an error with a link to create one. Large documents Firestore charges & loads ...
Daxita Raj Mishra's user avatar
Best practices
0 votes
3 replies
68 views

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: [...
guilleatm's user avatar
1 vote
0 answers
63 views

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&...
Ahmad Habib's user avatar
  • 2,510
1 vote
0 answers
65 views

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 ...
Abhijeet Kharatmol's user avatar
-1 votes
0 answers
30 views

I am trying to use firestore and get a top list of items saved into the database. I want for example the top newest, top most worn, and top trending. An item in the datastore looks something like this....
Rick Sanders's user avatar
2 votes
3 answers
134 views

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 ...
Gery's user avatar
  • 9,255
0 votes
2 answers
124 views

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, ...
CBD's user avatar
  • 107
0 votes
1 answer
99 views

func fetchNextPage() async { guard !isLoading, !reachedEnd else { return } isLoading = true defer { isLoading = false } let excluded = Array(BlockService.shared.blocked.prefix(10))...
CobraCodes's user avatar
0 votes
0 answers
79 views

Upon moving a view and it's ViewModel(where i am using Firestore) from the main app module to it's own module, my Canvas Previews crash with the error: XCPreviewAgent crashed due to an uncaught ...
Geob's user avatar
  • 614
0 votes
0 answers
114 views

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 ...
Mikail Eryilmaz's user avatar
0 votes
2 answers
182 views

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:...
Xys's user avatar
  • 11.3k
2 votes
0 answers
95 views

I’m using Google Sign-In with Firebase in my Flutter app. Here’s the situation: I previously changed the app’s package name and updated it everywhere, reconfiguring Firebase accordingly. When I test ...
Pure Design's user avatar
0 votes
1 answer
90 views

I've been trying to fetch documents from a different database I made on my project. I have my primary database which is called 'Default' and I have another database in the same project called 'Staging'...
BSR's user avatar
  • 77
0 votes
1 answer
124 views

My ADK agent works fine locally when running on adk web, but the instance running on Agent Engine always fails to read and write data from firestore. I get an error saying 403 Missing or insufficient ...
Victor's user avatar
  • 445
0 votes
1 answer
51 views

So I have a document for an event. Here's the current structure: { "name": "Some Event Name", "users" : { "a": { "name": "Some Name&...
JoeBayLD's user avatar
  • 1,111
0 votes
1 answer
76 views

14 Reads After the Login: Query Insight at the time of Log In: I am using basic email-password && google sign-in in my app. no other module yet. In my users collection there are only 3 ...
Sheikh Zamin's user avatar
0 votes
1 answer
52 views

I’m building a web app where users sign in with a Firebase Authentication custom token. The token has claims like this: { "iss": "------", "sub": "------", ...
Vishwesh Jainkuniya's user avatar
0 votes
1 answer
61 views

I’ve been working on a React/Firebase app for the past 10 months, and things have been smooth so far. Recently, I decided to do some refactoring. I switched from using user-generated fields as unique ...
Emi Buliga's user avatar
0 votes
0 answers
77 views

I am building a Flutter mobile app using Firebase backend. I have four collections: institutions, resources, resourceTypes, users. I want the institution's collection to be accessible by any user (...
Kafiul Islam's user avatar
0 votes
0 answers
96 views

I'm experiencing a critical issue with my NextJS/Firebase application where approximately 40% of random user registrations result in "orphaned" users - users that exist in Firebase ...
mehmet's user avatar
  • 45
0 votes
1 answer
49 views

I am using the Google Firestore Emulator locally for development. However, when I query the database data, I find that the results are inconsistent and not correct each time. Here is the detailed ...
LEVI_104's user avatar
1 vote
1 answer
136 views

I have a collection named "dms" that has "firstUserId" and "secondUserId" as fields in its documents. The following rule is giving me permission denied error: match /dms/{...
Jaden Watt's user avatar
0 votes
0 answers
27 views

I have a web application running on localhost:5000 using HTML pages (index.html and category.html) with dynamic component loading (e.g., header.html) via the loadComponent function. Links in the menu (...
Kay Zeref's user avatar
0 votes
1 answer
92 views

I am hosting a competition where groups of players (classes in a school) compete for points. The players play individually and earns points for both themselves and for their class. I track individual ...
diana's user avatar
  • 31
0 votes
0 answers
190 views

My goal is to write tests that: Simulate multiple concurrent HTTP POST requests to a cloud function endpoint (e.g., 2-3 identical webhooks arriving almost simultaneously). Verify database side ...
HouseOfCode's user avatar
1 vote
0 answers
85 views

How do I properly initialize the Firebase Admin SDK with environment variables in Next.js / Node.js? I'm trying to initialize the Firebase Admin SDK in a Next.js project using the environment ...
Moha C.'s user avatar
  • 11
0 votes
1 answer
46 views

I'm trying to use the diff() method in my Firestore rules to ensure the user only edits the allowed fields, however when I try to compile my rules and upload them, I receive the following error in my ...
Jasperan's user avatar
  • 4,945
1 vote
1 answer
100 views

I have a Next.js application on Vercel. My API route fails when calling Firestore's doc() function, but only when deployed to Vercel or when running the production build locally. The dev server (npm ...
Matthew Helker's user avatar
0 votes
0 answers
51 views

I have a Flutter app which accesses firestore data in a readonly way, and no user authentication is required for that data. There are some static information in firebase which can be updated without ...
nobody's user avatar
  • 218
0 votes
1 answer
116 views

I'm using Firebase in my iOS project. In my AppDelegate, I have the following: final class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, ...
Whirlwind's user avatar
  • 12.6k
0 votes
1 answer
112 views

Here is a pic of my firestore data. I am running this query: var settings = []; const queryGetSettings = db.collection('Settings').doc("Category"); var query = queryGetSettings.get() ....
letsCode's user avatar
  • 3,106
0 votes
1 answer
116 views

firestore nodejs sdk support custom class with typescript by withConverter. But only updateDoc support FieldValue, what about setDoc, addDoc? for example: class Post { constructor( ...
no13bus's user avatar
  • 411
0 votes
1 answer
92 views

When I subscribe to a collection that results in 100 documents, a couple of days later, I start my app again. I am offline. I see all 100 documents because Firestore cached them for me. Then I go ...
Witek's user avatar
  • 6,520
0 votes
1 answer
62 views

I'm building a football match prediction system using JavaScript and Firebase. Users can make predictions on match results, and for users who don’t submit a guess, I want to automatically assign a ...
Stam Mashu's user avatar
0 votes
1 answer
67 views

Previously, I had the following rule: allow read: if request.auth.token.email in resource.data.shareWith; Now, that the data structure changed and shareWith is no longer an array of email addresses, ...
Simon Ferndriger's user avatar
0 votes
0 answers
114 views

Problem Context I'm building a Firebase iOS app application where authenticated users can access their own documents. Each user has a dedicated document in Firestore with security rules like: match /...
HouseOfCode's user avatar
1 vote
1 answer
43 views

my firestore stores user data as below: users (collection) uid-123 (document one per user) profile: name: 'My Name' options: { x: 1, y: ...
Moblize IT's user avatar
  • 1,338
0 votes
1 answer
69 views

I’m building a multi-platform healthcare app where: Mobile & Web portal share the same Firebase backend and allow individual doctors to view a single patient stream at a time. Android TV client (...
Player91's user avatar
  • 153
1 vote
1 answer
87 views

While conducting a code review today, multiple AIs advised against using the stream() function within a Firestore transaction in Python. However, I couldn't find any mention of this limitation in the ...
Cheok Yan Cheng's user avatar
1 vote
1 answer
93 views

I built a multi-tab Flutter Web registration form (Clients and Workers) that submits data to Firebase Firestore using the .add() method. It was working fine for a few days, but now I'm getting this ...
Aryan Saigaonkar's user avatar
1 vote
1 answer
77 views

I have a web application utilising React and Firestore where users can create "rooms" which, when active, allow users to interact with the host. There is an option to both activate and ...
aabdulahad's user avatar
  • 1,145
0 votes
1 answer
87 views

I am migrating a generation 1 node.js google cloud functions to generation 2 cloud run. It uses a onDocumentCreated function to create and save a file to cloud storage built from a collection of data ...
Steve Klock's user avatar
0 votes
1 answer
37 views

My question is about indexing and cardinality in Firestore. I have 3 fields: owner_id: Thousands of users domain: Hundreds of domains category: Only 10 unique one The composite index, which matches ...
Khaled Sh's user avatar
1 vote
1 answer
103 views

Goal/intention The rule should grant access to a user document (which contains some personal information like email address) and also its subcollections for movie and tv watchlists, in case the user ...
Simon Ferndriger's user avatar
1 vote
1 answer
43 views

I have the following rules in Cloud Firestore: match /users/{userId}/{documents=**} { allow read: if request.auth.token.email in resource.data.shareWith; // allow read: if resource.data.test == ...
Simon Ferndriger's user avatar
2 votes
1 answer
69 views

I have two Firebase Cloud Functions with onDocumentCreated triggers. The issue is that when my delete function tries to delete a document that doesn't exist, it somehow triggers the checker function, ...
HouseOfCode's user avatar
0 votes
0 answers
48 views

I'm implementing Razorpay webhooks using Firebase Cloud Functions and running into a FAILED_PRECONDITION error when querying Firestore. The webhook handles Razorpay account status updates (activated, ...
SANKET SALVE's user avatar

1
2 3 4 5
856