42,956 questions
1
vote
0
answers
10
views
Firebase functions not changing firestore database
I'm new to firebase functions and recently I was tasked with adding two new functions. One needs to run daily at midnight and the other runs whenever a budget for an order in a firebase collection (...
0
votes
0
answers
19
views
Unable to Fetch and Display Admin, Passengers, and Drivers Chats from Firebase Firestore in Flutter
I am working on a Flutter project where I need to display chat messages between admin, passengers, and drivers. The chat data is stored in Firebase Firestore under the admin_chats collection. Each ...
1
vote
1
answer
26
views
The named parameter 'documentSnapshot' is required, but there's no corresponding argument
I want to navigate from a page not using Firebase to another page that I used Firebase, I could not know what the right argument.
This is a non-firebase page, the error in the tourist() route.
class ...
0
votes
0
answers
27
views
Express.js Server not listening
I am trying to run a backend server which communicates with the frontend. My frontend works fine.
when I run node server.js in the terminal i get this message
When i try to check if the server is ...
0
votes
1
answer
27
views
run firebase emulator in spring boot test
I need to migrate some documents from one collection to another. This migration runs when the application starts up. It checks if the migration is finished, if it's not, it will run it otherwise it ...
0
votes
1
answer
32
views
ECONNRESET error in postman when inserting document to Firestore from Laravel
I relatively new on using firebase on laravel and currently encountering an error in postman
"Error: read ECONNRESET" everytime I run createUser what could be the problem?
public function ...
0
votes
0
answers
70
views
+50
ionic 7 with firebase on android fails to connect with firestore
after looking at all the threads and suggestions, for me I still get the error. adding experimentalForceLongPolling:true did not help. I tired another flag as well without any luck.
File: https://...
0
votes
0
answers
27
views
Firebase initialised successfully multiple times and memory issues [closed]
My setup is as follows:
I have a main.py file, in which I import all my functions:
from folder.file import function1
from folder.file import function2
cred = credentials.ApplicationDefault()
...
1
vote
2
answers
75
views
Flutter doesn't load data from Firestore Database
I'm trying this code:
try {
print("via!");
QuerySnapshot qs = await FirebaseFirestore.instance
.collection('muscle_groups')
.get();
print(qs.docs.length);
...
0
votes
0
answers
30
views
Firebase cloud function works from Curl but no Golang
I deployed some basic Firebase Cloud Functions and I tested them using curl and they worked, but when I try to programmatically access them from my Golang code I get the error stream error: stream ID ...
0
votes
0
answers
26
views
How to Fix 'Untitled' Appearing in Recent Chats in Firestore (Quasar App)? [closed]
Firestore Structure:
{
"chatId": "abc123",
"title": "Chat with AI",
"messages": [{ "role": "user", "content": &...
0
votes
0
answers
32
views
Save button does not retain state after app restart [closed]
There is a strange problem that occurs in my code when I click Save for a job, the code saves it and replaces the word Save with Remove, but if I exit the application and come back in, Remove goes and ...
0
votes
1
answer
37
views
Clear Firestore database after testing
I am running Android UI tests. I use a separate Firestore DB for testing. I want to delete all documents after a test finishes. This curl command works.
curl -v -X DELETE "http://127.0.0.1:8080/...
0
votes
0
answers
26
views
Firestore transaction inconsistent results
Use case:
Say I need to track overall population, states and all cities within the state.
Overall aggregated metrics need to have total population across cities, total states and cities.
Eventually ...
1
vote
1
answer
25
views
How do I check the equality of a Firestore Reference in Firestore Security Rules?
For background, our database has a letterbox collection with a field called members, an array storing Firestore references to our users collection. In security rules, we need to check whether a user ...
0
votes
1
answer
33
views
Firebase and Firestore - how to restore user credential (and data) after reinstall app?
I read lot of documentations regarding accounts such as:
https://firebase.google.com/docs/auth/android/account-linking
But I don't understand the concept regarding the unique ids.
In my app, users can ...
0
votes
1
answer
33
views
Error saving item to Firestore: Missing or insufficient permissions
I am trying to upload an image to the Firebase storage and then write it into Firestore database.
func storeMarketplaceItem() {
guard let userId = Auth.auth().currentUser?.uid else {
...
0
votes
1
answer
83
views
How to access a non-default Firestore Database in Firebase Storage Rules?
When writing rules for Firebase Storage, I get a warning that the parameter for firestore.get must always start with /databases/(default)/documents, like this:
firestore.get(/databases/(default)/...
-1
votes
2
answers
53
views
Firestore Bandwidth costs for downloading documents with large embedding vectors [closed]
Background
I'm developing an application that uses vector embeddings for similarity search. I'm considering storing these embeddings directly in Firestore documents, but I'm concerned about potential ...
1
vote
0
answers
22
views
Laravel 11 + Firebase Firestore: Server Stops Responding
I am working on a Laravel 11 and PHP 8.2.12 project on Windows 11, using kreait/firebase-php to connect to Firestore. I have a strange issue where calling a specific route that interacts with ...
0
votes
0
answers
26
views
How to Implement Scalable Custom Scheduled Push Notifications in Flutter Using FCM Without WorkManager?
I’m developing a Flutter app where users can set custom schedules for receiving push notifications. Each user can choose their own frequency, such as:
10 notifications per day
5 notifications per day
...
0
votes
0
answers
15
views
Firestore - Querying a collection based on current time
I would like to retrieve a list of events stored in a Firestore collection in Python. I want to retrieve only future events (but I also want to keep past events up to 2 hours).
I also want to listen ...
0
votes
0
answers
39
views
Firestore: Unsupported field value: a custom Timestamp object after updating firebase version
I updated to firebase v11.3.1 from v8.2.5 and I am using the compat mode.
However my updates no longer work due to using FieldValue.serverTimestamp() for a date field.
Any suggestions on how to ...
0
votes
0
answers
40
views
Building XCFramework with FirebaseFirestore fails due to module library evolution compatibility
I'm creating a minimal XCFramework that wraps Firestore operations, but keep encountering build errors related to Firebase's library evolution support. The goal is to create a drag-and-drop ....
0
votes
0
answers
17
views
TypeError: (0 , _next_auth_firebase_adapter__WEBPACK_IMPORTED_MODULE_2__.default) is not a function
Receiving this error whenever i run npm run dev.
Full error:
⨯ TypeError: (0 , _next_auth_firebase_adapter__WEBPACK_IMPORTED_MODULE_2__.default) is not a function
at admin (c:\Users\user\Downloads\...
0
votes
1
answer
29
views
How can I fetch a set of documents whose ids match an array of ids in node.js using firebase?
I'm working with Firebase Firestore and I have the following code to fetch a set of "lines":
for (let i = 0; i < indexes.length; i++) {
const doc = await lineCollection.doc(indexes[i])...
0
votes
1
answer
79
views
How use arrayUnion using firestore rest api?
I can't find a way to achieve the request even following the Firestore documentation.
I tried this request:
PATH (PATCH METHOD): https://firestore.googleapis.com/v1/projects/social-autt/databases/(...
0
votes
0
answers
38
views
Firebase Cloud Function (Firestore database) - Update millions documents in less than the hour limit [duplicate]
In our project, we need to update one field in the users collection in millions of documents once a day.
We use the cloud function (Node.js) for this, recently we update 2 million documents in a time ...
0
votes
2
answers
36
views
Does a Firestore Precondition count as an extra read?
Firestore's Update and Delete document methods accept an optional Precondition argument, to check whether the doc exists or its last update time. Does that check count as an extra document read?
I'd ...
0
votes
1
answer
91
views
How do I share a FirestoreDataConverter between @firebase/firestore and firebase-admin/firestore?
I am writing an Angular application which uses Firestore. I want to be able to use my interfaces and FirestoreDataConverters (which are declared in an Angular Library) in my Firebase Functions too.
...
0
votes
1
answer
31
views
Firebase database rules dont apply to collection
I am trying to limit rules for my database from the iOS sdk. I want users to be able to read any collection. However they should not be able to write to the collections specified below. But the users ...
0
votes
0
answers
71
views
Laravel 11 + Firebase Firestore: Service Account File Not Readable & Server Stops Responding
i'm working on a Laravel 11 and the PHP 8.2.12 project on Windows 11, using kreait/firebase-php to connect to Firestore. I have a strange issue where calling a specific route that interacts with ...
0
votes
1
answer
27
views
Confirmation over automatic re-queries for billing
I read in the official documentation that if the app is terminated or if a session has been inactive for more than 30 minutes that despite if a local/non stale cache is present, the query will be ...
2
votes
2
answers
1k
views
Getting deprecation warning using firebase in react native
I am using firebase in my react native project for authentication and getting this warning even after updating my code according to modular api -
This method is deprecated (as well as all React ...
0
votes
2
answers
52
views
Where is the Firestore databaseURL?
I have set up a little Firebase project with a Firestore database.
And I am facing a problem. The databaseURL does not seem to appear anywhere.
I do not remember having the same issue when using the ...
0
votes
0
answers
27
views
How do I read and write data on firebase based on the authentication status of a user in clerk
I've recently encountered an issue when I tried to read and write data to firebase based on the authentication status of a user in clerk.
Apparently this article shows how you can integrate a user's ...
0
votes
0
answers
23
views
Using Provider with Firestore subcollections
In my Firestore i have a collection Meals and each Document Meal has a subcollection Ingredients. In my project i am using Provider for statemanagement. The id to get all ingredients is changing at ...
-1
votes
1
answer
48
views
Why is the mock in my React unit test returning null
I have a hook that retrieves data from a firebase backend if the storage is clear.
The unit test keeps failing as a result of the null return value.
Here's the hook
import { useEffect, useState } from ...
0
votes
0
answers
44
views
Though all my firebase rules are correct still getting permission issue in my flutter app
Though all my rules in the firebase are correct i am still getting this issue in flutter (24.11.0
[Firestore]: Listen for Query(target=Query(AdviserInformation where [email protected] ...
2
votes
1
answer
35
views
How to add data to Firestore database using python?
I am trying to add test_data dictionary to my Firestore database using python. It is not working since .set() method is not showing there anymore by vscode auto suggestion.
from datetime import ...
0
votes
1
answer
34
views
How to efficiently list recently active group chats for users without fan-out writes in 1000+ member groups?
I'm using a two-collection approach (userChats and chats) for quickly accessing a user's group chats as opposed to the use of an extremely long participant array of user IDs. However, I am struggling ...
0
votes
1
answer
46
views
Even though there is data in Firestore, query snapshot is empty
Although there is efficiency in the Firestore database, in the example below, when the chat application performs onSnapshot, querySnapshot returns empty.
useEffect(() => {
if (!token || !...
0
votes
2
answers
59
views
How to get realtime updates with getx
I am fairly new to flutter. I am using Getx for state management.What is the best way to listen to firestore realtime updates? I use the RxListin an obx in the ui to build items using a ...
0
votes
2
answers
41
views
Widget is not refreshed when provider value changes
I have a users Firestore collection where the ids are my users uid.
When a user logs in (with Firebase auth), i'd like to wrap the whole application by the corresponding firestore document.
My code is ...
0
votes
1
answer
54
views
Firestore gRPC Listen does not send deletions
I am using Postman to call the firestore.googleapis.com gRPC Listen. I am using the web UI (https://console.firebase.google.com/) to manually make changes to a Firestore for testing purposes. When I ...
0
votes
0
answers
39
views
How to properly pass authentication to cloud functions when calling from chrome extension
This is cloud function I'm using to access Firestore:
const functions = require("firebase-functions");
const admin = require("firebase-admin");
admin.initializeApp();
exports....
0
votes
1
answer
62
views
How to track user activity from the backend?
I am using Firebase Auth, and my users have to be authenticated to use the app.
I would like to have an overview of my (web) app usage from my users. Of course, I could implement tracking from the ...
0
votes
1
answer
67
views
How to change Firestore database in Firebase Admin Node.js? [duplicate]
I'm using the Firebase Admin SDK with Node.js. My Firebase app has some Firestore databases. For example:
(default)
system.
But every time I save data, it always goes to the (default) database and I ...
0
votes
1
answer
57
views
Is there a way to store relationship data while still being able to sort on the username of the friends in the firestore?
I am trying to create a relationship document in the firestore however I am struggling with making it sortable using the orderBy function. So far I am storing the following data:
uids: a list ...
0
votes
1
answer
44
views
Saving String List to Firestore
I am working to save times which is chosen by users. Chosen times should be saved to firestore. In my logs, Log.d("FirestoreSave", "Saving Place: $placeInfo") shows the times also ...