40,074 questions
-2
votes
0
answers
72
views
Problem with JS Array from firebase in Web app [closed]
I'm currently working on a learning project using a firebase real-time database and have a few questions. I'm implementing it in javascript for now – later I might take the next steps with an app. It'...
2
votes
1
answer
132
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 ...
1
vote
1
answer
68
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
1
answer
91
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(...
2
votes
1
answer
114
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 ...
1
vote
0
answers
62
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')
....
-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
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
...
-1
votes
1
answer
132
views
ESP32 Firebase Realtime Database Upload Not Working — No Data Appears in Database
I am working on an ESP32 project to measure voltage, current, power, and energy consumption using the EmonLib library, and send the data to Firebase Realtime Database. Although my ESP32 is connected ...
0
votes
1
answer
52
views
Realtime Database structure creation fails – values disappear or produce errors
I'm attempting to manually create base data structures in the Realtime Database for a project called “Viral Content Platform.” The platform is being built to support campaign creation, sharing, and ...
1
vote
0
answers
50
views
Firebase App Check: Unverified requests on iOS (1-10%)
We have set up App Check for our app. In our production environment (used for TestFlight testing, not yet publicly released), we are seeing a certain percentage of unverified requests.
For Firebase ...
0
votes
0
answers
50
views
Cannot see the logs from Firebase Database in Google Cloud Run to send push notification
I am trying to use Firebase logs.
I am able to add new records into my Firebase Realtime Database Chat entity.
The problem is I cannot see any logs or errors when browsing them at Google Cloud Log ...
1
vote
0
answers
123
views
Data not passing between viewModel and View
Long story short, I'm trying to pass information from Realtime Database, into a viewModel function/variable, then call that variable in a specific view.
Here is the viewModel.
import FirebaseAuth
...
1
vote
1
answer
67
views
Firebase Storage security rules: get() to Realtime Database dont work
I’m trying to create a Firebase Storage rule that only allows access to files under /approved/ if the user has a permission: true field in the Realtime Database, located at this path:
/Users/{uid}/...
0
votes
0
answers
85
views
I'm having trouble pulling data from Firebase with Jetpack Compose?
private lateinit var viewmodelAuthentication: ViewModel_Authentication
class Activity_Login : ComponentActivity() {
@SuppressLint("CoroutineCreationDuringComposition")
override fun ...
0
votes
0
answers
33
views
Randomly empty "userRegistrationDate" when Loading PlayerStats from Firebase Realtime Database
I'm experiencing a puzzling issue with loading player statistics in my Unity application using Firebase Realtime Database. The problem is that the JSON snapshot sometimes contains an empty string for ...
0
votes
0
answers
42
views
Firebase realtime database, Is there a way to prevent adding children to a node when it has reached its child node limit? [duplicate]
Is there a way around this, but what I know so far is that the database rules do not support numChildren() to read the number of child nodes.
Some other suggestions are to use a custom counter that ...
0
votes
1
answer
35
views
How to Restrict Firebase Realtime Database Access to Specific Query Parameters?
I have a domain whitelist system to verify whether a site's domain is included in my whitelist. If a domain is on the list, it means the theme is verified and purchased. Otherwise, the code should not ...
0
votes
0
answers
52
views
Firebase v2 Database Triggers not able access parent data from within trigger
It seems as if my promise to get parent data from within my Realtime Database trigger doesn't resolve.
Realtime Database Structure:
{
matches: {
{matchId}: {
startAt: number,
endAt: ...
0
votes
0
answers
48
views
my data is being shown two times when change data
I am learning firebase and have made a simple html file where I can upload topic and content. The problem is that whenever I post new content, do an upvote, or delete a post from database, the whole ...
0
votes
0
answers
164
views
RANDOM Error "Cannot read property 'sendRequest' of null" React Native Firebase
I have made my React Native App with Expo and firebase and used realtime database in that.
Suddenly I started getting app crashes from the users and got to know that randomly users are getting error &...
1
vote
0
answers
46
views
Firebase Realtime Database not working properly when offline on ios
I am trying to create a counter app on flutter using firebase realtime as my database. Have enabled persistence and also syncing all the paths to enable offline capabilities. Everything works fine on ...
0
votes
0
answers
53
views
Next.js (app router) Client side fetching data with firebase
How to fetch data from client side components in Next.js with app router?
I have this method for fetching data:
import { useState } from "react";
import { get, limitToFirst, orderByKey, ...
1
vote
0
answers
95
views
Flutter Firebase Database loads indefinitely on IOS
I have a flutter app where I use Firebase Auth and Firebase Database.
The app works fine on my android phone. I am able to authenticate and add data to the database.
The issue is on Iphone. The ...
0
votes
0
answers
27
views
In kotlin, returning from a single item update fragment, I am unable to reapply my searchquery to my recyclerview
I am trying to teach myself coding using Kotlin. I am using a navigation graph to navigate through various fragments using a mainactivity. The home fragment displays in a recyclerview a list of towns, ...