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.
google-cloud-firestore
42,794
questions
0
votes
0
answers
22
views
Firebase Listener doesnt work on safari but works on chrome
I am making a time table that users can store locally using Shared Preferences in flutter. When an admin makes an update in firestore, I want the changes to be updated locally as well (in Shared ...
0
votes
0
answers
11
views
Firebase functions onValueCreated database trigger not working
I wrote below trigger
exports.onNewGameRequest = onValueCreated(
{ref: "/game_requests/{uid}", region: "europe-west1"},
async (event) => {
// Grab the current value of what ...
1
vote
0
answers
22
views
My Firestore listener in C# is not working
I’m new to Firestore. According to the official documentation, my code should work correctly, but for some reason, it doesn’t. I can read and write data correctly. Could it be that I’m missing some ...
0
votes
1
answer
15
views
Ionic Capacitor and Firebase Firestore
trying to make Firebase Firestore work in Ionic Capacitor on an iOS device for five hours and I'm losing my nerves right now. Hope you can ramp me up here.
The setup:
Ionic:
ionic (Ionic CLI) ...
0
votes
0
answers
16
views
Firebase rules work fine in emulator, don't work in the Cloud
The following firestore rules set works in my emulator,
but does not work in the Cloud.
The isUserAuthenticated returns false, as if the {userId} didn't evaluate correctly.
rules_version = '2';
...
0
votes
0
answers
12
views
Next.js 13 and Firestore static blog page gives me this error => TypeError: Cannot read properties of undefined (reading 'title')
I am trying to statically generate individual blog pages blog/[id].js on my Next 13 app with Firestore using getStaticPaths and getStaticProps, but I keep getting this error: TypeError: Cannot read ...
0
votes
0
answers
15
views
Where query on firestore [duplicate]
I have a collection of users, each with a collection called "logs". I have a collectionGroup with all "logs" collections. Each "logs" collection have documents which are ...
0
votes
1
answer
25
views
How to generate methods in `PerFieldToJson` using `json_serializable`?
Minimum reproducible code:
// foo.dart
import 'package:cloud_firestore/cloud_firestore.dart';
import 'package:cloud_firestore_odm/cloud_firestore_odm.dart';
import 'package:json_annotation/...
0
votes
0
answers
18
views
Why is CORS blocking the GCF request when an ID is used?
I am making calls via the Hubspot API from a Firebase Cloud Functions file. Most of these work without any issues; however, any endpoints that require an ID are blocked by CORS. I've tested these ...
0
votes
1
answer
30
views
How can I optimize my Cloud Function to react to Firestore document status changes more efficiently?
How can I optimize my Cloud Function to react to Firestore document status changes more efficiently? Is there a way to make this process event-driven rather than using periodic checks? I'm looking for ...
0
votes
0
answers
11
views
connect flutter android studio to firestore [closed]
how to connect firestore and flutter app in android studio to make the app more interactive
I have a login page with 3 field to select as Jilla ,Upashabha and password. the jilla and upasabha as to be ...
1
vote
0
answers
23
views
Firestore rules to not allow additional queries
getDocs(query(orderBy('createdAt', 'desc')))
with rules, i can enforce a query
allow list: if request.query.orderBy.createdAt == "DESC"
How do i make it so users cannot apply query to any ...
0
votes
1
answer
29
views
Lazy loading is returning empty array
import React, { useState, useRef, useEffect } from "react";
import {
collection,
query,
where,
getDocs,
startAfter,
limit,
startAt,
} from "firebase/firestore";
...
0
votes
0
answers
19
views
React Native Firestore useEffect Fetch Issue with where Clause and Pagination
I am working on a React Native project that uses Firestore to fetch a list of services. I am trying to fetch services with a price greater than or equal to 70 and implement pagination using Firestore'...
0
votes
1
answer
18
views
Distinguishing Firestore Snapshot Listener 'REMOVE' Event Reasons in Query
I have a snapshot listener for a query like this:
firestore
.collection("...")
.whereEqualTo("available", true)
.orderBy("sort", Query.Direction.DESCENDING)
...