40,073 questions
1 vote
0 answers
92 views
Why is the ServerValue.TIMESTAMP Realtime Database writing with such a large offset?
I'm implementing an online presence feature in an Android app, recording a heartbeat periodically while the client is active. I'm using RTDB timestamp for this. But the recorded data is on the order ...
2 votes
1 answer
142 views
How to query Firebase Realtime Database for top N users and current user’s rank
How to index Firebase Realtime Database for leaderboard and get current user’s rank? I’m using Firebase Realtime Database to store user data for a game. I want to implement a leaderboard based on the ...
0 votes
0 answers
37 views
Firebase Connectivity in ESP8266 NodeMCU
I am working on an ESP8266-based IoT project (waste segregation system) and trying to send data to Firebase Realtime Database. I am using the latest Firebase ESP8266 Client library (FirebaseESP8266.h) ...
1 vote
1 answer
73 views
Firebase databaseReference returning all data only in iOS
I'm having a problem with my Flutter SDK code where when I call the function to fetch data from the databaseReference it returns all the data from my database (8950 items), even though I'm doing the ...
0 votes
0 answers
72 views
Cannot Read and Update to Firebase using HTML and Javascript
i created a QR code scanning app to scan a ticket, with using a firebase as database, with HTML and Javascript. I have pass to connect to database but when i read the data it seems doesn't read a data ...
0 votes
1 answer
98 views
How to add an item to the cart only once?
I am working on my store project using JS. I have the addToCard code to add a product to the cart. This code works, but I would like to add the product only once. After which, when I click the button(...
1 vote
1 answer
52 views
Security rules warning
I have updated my security rules and they look like this: { "rules": { ".read": false, ".write": false, "development": { "events":...
2 votes
1 answer
123 views
Connecting firebase RTDB to chrome extension with manifest V3
I'm developing a Chrome Extension using Manifest V3 and Firebase Realtime Database. I'm experiencing intermittent CSP (Content Security Policy) violations that only occur randomly, sometimes the ...
-2 votes
1 answer
122 views
How to deny all writes to Realtime Database based on data within it? [closed]
In the Realtime Database, if we want to block all writes to an entire Realtime Database database based on some boolean contained therein, what is the proper way to do it? Let's say in Realtime ...
1 vote
0 answers
63 views
Firebase Realtime Database onValue listener triggers repeatedly on iOS without data changes in Flutter
I'm using Firebase Realtime Database in a Flutter app and listening for updates using the onValue stream. Here's the code I’m using: _plansSubscription = _plansRef .orderByChild('userId') ....
2 votes
2 answers
446 views
Firebase Realtime Database is not accessible from JIO network [closed]
I have an Android app that uses the Firebase Realtime Database. The app works perfectly on mobile data networks (like Vodafone 4G) and most Wi-Fi networks. The Problem: When the device is connected to ...
-1 votes
1 answer
55 views
How to secure firebase realtime database rules? [closed]
I have a simple program to show real-time postview counts. But in Firebase, it says Your security rules are defined as public, so anyone can steal, modify, or delete data in your database Every ...
0 votes
1 answer
62 views
Android Firebase Realtime Database startAt with limit [duplicate]
I want to perform something like pagination and receive portions of data inside this ids. Lets say I want to limit them to first 4 elements. I want to receive objects inside this ids starting at 1. ...
0 votes
1 answer
107 views
Can't delete a large node: 'trigger_payload_too_large'
Firebase Realtime Database just refuses to allow me to delete a node that's too large (I think larger than 1MB). Here is what I tried: Deleting from the client Deleting from the Firebase console ...
0 votes
1 answer
74 views
Do you need await for writes and transactions in Firebase Realtime Database?
Why does Firebase Realtime Database's transaction work without the await keyword as the updated official doc example shows (a few years ago, they all required await)? These write methods still return ...