Questions tagged [google-cloud-firestore]
Cloud Firestore is an auto-scaling real-time document database for storing, syncing, and querying data for mobile, web and server development.
42,065
questions
0
votes
0
answers
17
views
I am storing query parameters of users in cluster of few documents for all users in a Firestore collection. Will it affect performance?
I want to have queries related to name, email and phone with type insensitive
So I am storing all documents data of users collection in cluster of document with 1000 object limit.
This is my user ...
0
votes
0
answers
7
views
effect of .toString() while protecting firebase database from injection attacks in particular of http and database change trigger functions
i am using firebase functions for a while now and many times i pass some data wile converting it to string by using .toString() between database and function . of course database also consist users ...
0
votes
0
answers
11
views
Firebase & Squarespace - Connecting custom domain for Authentication emails Issue [closed]
So I have been at this for about 2 weeks or so with multiple failed attempts to linking my firebase project to use my custom domain from Squarespace (Which also is linked to a website in Squarespace), ...
0
votes
0
answers
6
views
How to use Production WSGI server when deploying Firebase Cloud Functions (Python, 2nd Gen)?
When I'm deploying my Firebase Cloud Function from the CLI, I always get the warning: WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server ...
0
votes
0
answers
25
views
Firestore: subcollection pretends to be empty
friends. Really need your help on this one. I've developed an iOS app that uses Firestore database and Storage. Everything works as intended. The thing I'm stuck with is propagating changes using ...
0
votes
1
answer
21
views
Why is my 'postInfo' state variable null when calling a function, despite being updated correctly in React Native and Firebase?
I am working on a React Native application using Firebase for data storage. I have a two components, let's call it Post and CommentSheet, where I display posts along with their details and a bottom ...
0
votes
0
answers
16
views
How to get XCode preview working in KMP with FirebaseFirestore using CocoaPods?
I am trying to build Xcode preview in kotlin multiplatform project when using FirebaseFirestore with CocoaPods.
With the following gradle files everything works fine, app runs & preview runs.
...
0
votes
1
answer
18
views
How to use arrayUnion in Firestore using Angular
I have been trying to learn using Firestore and could not find the documentation helpful at all in the case AngularFire since using FieldValue just throws an error as "FieldValue does not exist&...
0
votes
2
answers
32
views
Firestore Security Rules in Flutter - The caller does not have permission to execute the specified operation
I'm using Firestore do store my data with this Firebase Service.
I've set this Security Rule where the user only can access a document if his auth UID is into an array, which is inside a base document ...
0
votes
2
answers
33
views
firestore not giving live updates swiftUI
I am fetching messages from firestore, when I send or recieve messsages, I have reload the ChatScreen() to see the updated messages
class ChatViewModel: ObservableObject {
@Published var messages: ...
0
votes
1
answer
20
views
Flutter Bloc: Ui doesn't update with data emitted from Stream
In my app I added a stream that listens to changes on a document ( the document contains some String fields and List<String> arrays )
Bloc code:
void _onPageHomeGetUserData(
...
0
votes
0
answers
35
views
I Cannot Fetch List<String> from Firebase RealtimeDatabase in Flutter
I have my data from Firebase Realtime Database:
This is my Model and it's fromMap function:
class ProjectModel {
String projectId;
String projectName;
String projecctDescription;
String ...
0
votes
1
answer
31
views
Firestore Document Maps to List of Objects Kotlin
I have this Firestore Document:
Every field in the document is a Map. I would like to obtain these fields as a List<Schedule> in Kotlin but I couldn't get it.
I have this:
data class Schedule (
...
0
votes
0
answers
18
views
how to Deletete this Firestore Subcollection with document Id?
This is my firestore collection:
I have to delete whole collection with subcollection. I am successfully delting the documents from UserRooms collection and Devices subcollection, but the Devices ...
3
votes
1
answer
58
views
firestore transaction seemed to have allowed a concurrent edit?
We have been using this cloud function for a while where we provide our users with a single number/code from a array of unique locker numbers inside a single firestore document using the code as shown ...
0
votes
0
answers
21
views
ld: warning: method '-persistentCacheIndexManager' in category
I just installed "CloudFirestore" with "Swift Package Manager" in my xcode project.
Firebase SDK Version 10.0.0
Xcode Version 14.3.1
Installation Method Swift Package Manager
I ...
0
votes
1
answer
40
views
While adding data to Firebase an error occurs
This error occurs while adding data to Firebase:
[{0}] Failed to resolve name. status={1}
W/Firestore(27613): (24.9.1) [WriteStream]: (fecff26) Stream closed with status: Status{code=UNAVAILABLE, ...
0
votes
0
answers
27
views
can not build flutter on windows while using firebase packages(Firebase_auth, cloud_firestore, Firebase storage) [duplicate]
Recently the firebase official packages including (Firebase_Auth, cloud_Firestore, and Firebase_storage), started supporting windows platform. Prior to that I was using community packages for the ...
0
votes
0
answers
28
views
LNK2001 error when trying to build a flutter application for windows
Recently the firebase official packages including (Firebase_Auth, cloud_Firestore, and Firebase_storage), started supporting windows platform. Prior to that I was using community packages for the ...
0
votes
1
answer
28
views
Firestore Connection Issues and Unverified App Check Requests in Firebase Web App
Problem:
I'm experiencing consistent issues with Firebase Firestore in my web application. Although authentication processes succeed (users are created in Firebase Auth), attempts to write to ...
0
votes
0
answers
19
views
How to integrate a Firebase project with web application made with ASP.NET [closed]
I will create backend of a web app with ASP.NET.
How can I integrate Firebase with this app using ASP.NET in the backend?
0
votes
1
answer
20
views
Missing index configuration firestore Spring Boot
I'm trying to run a custom query for spring data firestore.
In my FirestoreReactiveRepository I created:
findAllBySubTypeOrderByOccurredAt(String subType);
and I created the indexes in firestore:
...
0
votes
0
answers
14
views
How to fetch subcollection dynamically in firebase firestore [duplicate]
How to fetch subCollection on client side dynamically when subCollection is created serverside.
Since I'll be creating subcollection dynamically I will not be knowing name of such subCollection, how ...
0
votes
0
answers
68
views
firebase order by not working as expected
the order by does not work as expected in my query. I´m trying to find users in the given radius and to sort the users by membership and lastBoostAt but the order by query is doing nothing. do someone ...
1
vote
1
answer
23
views
I'm having error as regards deleting document from firebase. The error is coming from the fileId
async function deleteFile() {
if (!user || !fileId) return;
// the pat to the file we want to delete. this indicates the location of the file we want to delete
const fileRef = sRef(...
0
votes
0
answers
44
views
How to compare data from firebase
I'm trying to do a user validation system. I need to ask if the parameters i enter are the same with the ones register in Firebase.
I tried to do this but it fails.
Future<bool> ...
0
votes
1
answer
43
views
stream provider can't seem to update the ui as intended
I'm working on a Flutter application using Riverpod for state management and Firestore for database interaction. I have a StreamProvider (allPostsProvider) that fetches posts from Firestore and ...
0
votes
0
answers
27
views
swift firebase firestore isGreaterThanOrEqualTo error [duplicate]
I am running this code. I want users starting with 'a' to come from the database, but starting with 'h' are coming.
db.collection("Users")
.whereField("userName", ...
0
votes
0
answers
10
views
Counting words after Cloud Vision OCR and saving the word count to Firestore produces a different number on each try with the same document
I OCR a pdf with google cloud vision and get its json output from Firebase Storage. Then, I retrieve the full text from the json, count the words and save the word count to Firestore. The weird thing ...
-1
votes
1
answer
49
views
How can a user who forget password reset the password
Users can sign in using either email/password or username/password. For username, the code creates a non-functioning email e.g [email protected]. email verification is set to false. A user may forget ...
-1
votes
0
answers
21
views
firestore document size may not be enough for my requirements, so what to do? [duplicate]
Let's say I am working on a social mobile app in Flutter and use Firebase Firestore as the backend. In this app, users can post and each post can be liked! To track how many users liked a specific ...
0
votes
0
answers
39
views
Downloading multiple items to firebase storage bucket
I'm trying to download or use an array of images that I have saved into the firebase storage bucket.
I have a form with a file input where the user can upload an image to the firebase storeage bucket ...
0
votes
1
answer
44
views
is there a way to return firebase snapshot in firebase cloudapi? [closed]
I have a function that lazy loades documents, inorder for it to fetch the later documents i will need to use the startafter method, and i need the last snapshot for it but firebase cloud api wont let ...
-1
votes
1
answer
29
views
Firestore order by query with multiple where clause
I'm looking to do this query where I order by geohash field while at the same time having a whereField clause on 2 separate fields, namely endDate and status. Is there any way to overcome this ...
1
vote
0
answers
21
views
How to get values from Document References in Flutter Flow?
I have 2 collection: films, genres. And in films collection exists genres as list references.
In my app i want get all genres list values from single document in collection films.
Argument 1: list of ...
0
votes
0
answers
29
views
Flutter: Getx: How to load Dropdown widget after fetching values from Firestore database using Getx State Management
My issue is : I am trying to fetch values(studentName) from my Firestore database and load it onto the DropDown widget. The problem that I a facing is that I am able to retreive the data from the ...
0
votes
2
answers
30
views
What is the right setup to develop Firebase Functions with Firestore?
I am developing an iOS app with Firebase. The development works well with remote Firestore cloud data.
Since I have to develop Firebase Functions, as advised in Firebase document, I started to use ...
1
vote
1
answer
65
views
Kotlin flows merge triggers infinite loop
I'm building a native android app using Room for local persistence and Firebase to exploit multi-devices sync. The app manages a list of notes.
Room is the primary data source, and Firebase is the ...
0
votes
0
answers
17
views
Handling Time Zone Conversions with Firestore Timestamps in Cloud Functions
I'm working on a Firebase Cloud Function that queries Firestore data based on date ranges provided in the request payload. However, I've encountered challenges with time zone conversions impacting the ...
1
vote
1
answer
38
views
Kotlin Jetpack Compose - Textfield not accepting Inputs
I have a feature where after fetch data in firestore, it will display the it in the UI, but now i wanted to add a feature where if i click the edit button it will allow the users to edit it, however ...
0
votes
1
answer
22
views
How to add a field to an existing map field in Firestore using flutter
There is a map in Firestore. I have another map by the name correctAnswersNew that I wish to add to this existing map correctAnswers. Something like this:
await mycollection
.doc("1")
...
1
vote
0
answers
11
views
Stream error while insertion into firestore [closed]
Stack permission denied :description:permission denied:cause null.
I want to insert data into firestore but this error occurs although rules are already allow.
So how to solve this when ever i want to ...
2
votes
0
answers
13
views
Send calendar alerts from table_calendar events to device in flutter app
Is it possible to send alerts for upcoming events from the table_calendar widget? I store the events in a Cloud Firestore db and I was just wondering if I could send them from the table_calendar ...
0
votes
0
answers
23
views
Angular: Duplicating Data Issue in Angular Firestore Pagination and InfinityScroll
I am facing an issue in an Angular application where I use Firestore for paginating and displaying chat messages. The problem arises when a new message arrives (data), and the existing paginated data ...
1
vote
1
answer
25
views
Efficient Firestore Query for Nested Arrays with Vendor and Product Conditions
I have a Firestore data structure with nested arrays, and I'm struggling to find an efficient way to query documents based on both vendor and product conditions within these nested arrays.
Here's a ...
1
vote
1
answer
58
views
Read from pub/sub and write into Firestore (native) using Beam Dataflow streaming (python)
I am reading from pub/sub using Dataflow sliding windows, applying some transformations before creating entities and writing into Firestore native. I see that beam does not support native Firestore I/...
1
vote
0
answers
14
views
firebase I want to retrieve primary key [closed]
I can pull data from the yellow edge, but I can't pull it back from the red edge. This is my code example[!
I can pull data from the yellow edge, but I can't pull it back from the red edge. This is my ...
0
votes
0
answers
19
views
This code doesn't upload my data to Firestore database [closed]
const handleSubmit = async (e) => {
e.preventDefault();
// variables
let displayName = e.target[0].value;
let email = e.target[1].value;
let password = e.target[2].value;
let file = e....
1
vote
1
answer
34
views
Default FirebaseApp is not initialized in this process even calling FirebaseApp.initializeApp(Context) first [duplicate]
Default FirebaseApp is not initialized in this process EVEN calling FirebaseApp.initializeApp(Context) first.
The error happens when I try to use Firestore dependence
app/build.gradle
plugins {
...
1
vote
0
answers
26
views
Firestore's getDocs() function does not get fulfilled or rejected for me when I try to use it to fetch a list of data
I am trying to fetch a collection (called books) of documents from my firestore with getDocs() function.
However, it does not seem to return any results (a Promise that does not get fulfilled or ...