40,149 questions
0
votes
0
answers
38
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: ...
-1
votes
0
answers
50
views
Why is value null when the object returns correctly from the firebase database? [closed]
The database has a user_id with value in the photo object, but when it is fetched, the other attributes are correct while the user_id is null. Below are images of the firebase database, code and the ...
0
votes
1
answer
38
views
Firebase realtimedatabase sort to time
I'm writing in the realtime database using the push() function
The push() function orders the input data in chronological order, but it does not, and it orders the data in numerical order
I want the ...
0
votes
0
answers
16
views
comment div is being refreshed when i write in database [closed]
i have made a simple question poster in firebase
here is my script.js code
import { initializeApp } from 'https://www.gstatic.com/firebasejs/11.4.0/firebase-app.js';
import { getDatabase, ref, set, ...
0
votes
0
answers
38
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
1
answer
34
views
How to insert child node / unique key from my data?
if(isset($_POST['submit']))
{
$drivername = $_POST['drivername'];
$operatorname = $_POST['operatorname'];
$mtop = $_POST['mtop'];
$platenumber = $_POST['platenumber'];
$image = ...
0
votes
0
answers
69
views
+50
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 &...
0
votes
1
answer
32
views
FireBase Push Notifications (FCM) Unity [duplicate]
I made a website enter information into the realtime Database through Firebase.
I want to create an app through Unity and make it get a push alarm whenever new information is entered in Firebase in ...
1
vote
0
answers
36
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
1
answer
36
views
Flutter: How to use GoRoutes correctly with Firebase Auth
I have a Flutter app where I use GoRouter for the routing part, FirebaseAuth for the authentication, Riverpod for the state management and Firebase Realtime for the database.
When a user registers on ...
0
votes
0
answers
31
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, ...
0
votes
1
answer
88
views
firebase database user submitted posts retrieve to android recycler view in date wise
This is my HomeView Fragment Activity
public class HomeView extends Fragment {
private View view;
private RecyclerView recentPosts;
private DatabaseReference donor_ref;
FirebaseAuth mAuth;
private ...
1
vote
0
answers
67
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 ...
1
vote
0
answers
25
views
Firebase Realtime Database Emulator - Python Listener Not Triggering on Data Changes
I am running a Firebase Emulator with a Realtime Database and trying to create a listener in Python that detects changes inside the database.
My Code:
import os
import firebase_admin
from ...
-1
votes
0
answers
32
views
UseEffect not triggering a re-render even though dependency changes (firebase realtime db) [duplicate]
I am trying to fetch some values from a db and render a list of components with that data, however, they do not show up even after i have updated their values in the state . If I force a re-render ...
0
votes
0
answers
26
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, ...
0
votes
0
answers
43
views
React native app stops firebase listener after logging BUNDLE ./index.js
I am working on a React Native app that uses Firebase Realtime Database and FCM notifications. I set up a listener to listen for changes in the Firebase database and trigger local notifications using ...
0
votes
2
answers
56
views
How to secure Firebase Realtime Database rules for in-app messaging between users and business profiles
I am very new to coding and I have trouble writing Firebase Realtime Database rules for my project.
I am using it for real-time in-app messaging.
Before going through the code, let me briefly explain ...
0
votes
1
answer
56
views
firebase realtime database PERMISSION_DENIED
So I am trying to create a chat app, using firebase (unfortunately) Realtime-DB, but I am getting error:
Error sending message: PERMISSION_DENIED: Permission denied
so this sounded easy at the begging ...
0
votes
2
answers
50
views
get weekly scores from leaderboard using firebase
i create a leaderboard page that shows all time scores fetched from firebase.
can i query just a scores user collected within a week ?
the code i'm using :
rootRef.observe(.value) { (snapshot) in
...
0
votes
0
answers
24
views
Electron React with Realtime database. How can I handle the 'Refused to load the script' error message?
I've used the electron-react-boilerplate to build out a simple electron app. I'm attempting to integrate Firebase Realtime Database but when I follow along with the tutorial I get hit with this error:
...
0
votes
1
answer
60
views
Firebase Realtime Database: Data Not Saving Despite Successful Integration
I am working on an Android project and have integrated Firebase Realtime Database successfully. To test if the data is being saved in the database, I wrote the following code:
...
0
votes
1
answer
49
views
What is the best way to check if a Firebase Database child already exists, and add it if it doesn't?
I am using Firebase Realtime Database (not Firestore) with Unity and C#.
My database has the following structure:
asdfghjkl
Lance Armstrong: 30
qwertyuiop
Bob Dylan: 45
zxcvbnm
Googoo Gaga: ...
0
votes
1
answer
30
views
How can I check I have established a connection with firebase services?
My app creates a user and stores his id and display name in the firebase realtime database as key and value. I'm trying to find out if I can check if I am connected to the service before letting the ...
0
votes
0
answers
15
views
WebSocket connection to the Firebase Realtime Database is being closed before it is successfully established
Why does my Firebase WebSocket close before establishing a connection to Realtime Database?
Seems like this console error only show in Google Chrome, in other browsers like Microsft Edge, its all good....
0
votes
1
answer
44
views
Google Cloud functions v2 eventarc - How to Track User Context for Deletions in Firebase Realtime Database
I recently migrated my Firebase project to use Eventarc triggers for Realtime Database, transitioning to Node.js 20 and the v2 architecture. While I've managed to find workarounds for tracking user ...
0
votes
1
answer
18
views
How to Change the Scheduled Time for Firebase RTDB Automatic Backups?
I am using Firebase THe Realtime Database's automatic backups; however, I noticed that these backups are being generated every day at 6:30 PM, which is before the end of the workday. In other Firebase ...
-1
votes
1
answer
42
views
Getting server timestamp of Firebase Realtime Database in Flutter/Dart
I am using Firebase Realtime DB for a messaging app written in Flutter. Whenever the user sends a new message, the message receives the timestamp of the client. This is obviously insecure. Therefore I ...
0
votes
1
answer
38
views
Get choosen categories from firebase database
I'm trying to get multiple categories from my firebase database, here is the structure:
category 1 = GCPVN-GCPVQ-GCPVR-GCPVP-GCPUZ-GCPUY-GCPUV-GCPVJ-GCPVM
category 2 = GCW2H-GCW2K-GCW2M-GCW2J-GCWRV-...
0
votes
0
answers
31
views
React Firebase Anonymous Login
I am using React Firebase to login anonymously as well as Realtime Database to add the user profile to the DB. Upon first login, user is logged in correctly and user profile is created. When I log out,...
0
votes
1
answer
31
views
How to make rules in Firebase Realtime Database that make it possible to securely create or delete "alias"?
How to make it possible to delete the alias if the alias -> id equals to auth.uid, but also allow alias to be created if not exists?
Here are my rules:
{
"rules": {
"alias"...
0
votes
1
answer
67
views
Firebase RTDB: Read data using pagination is too slow
I need to get a large bundle of data (10MB) from RTDB. All data store into stations node. When I get all data in single request, sometimes my Android app crashes with OutOfMemory error. So I need use ...
0
votes
0
answers
25
views
Firestore realtime database not updating after query
I have a problem, where when I want to update my firebase realtime db to add some subtables it just doesn't work.
here is the main method that should query the database
private fun sendInvite(...
0
votes
0
answers
26
views
ESP01 AT Command module with Google Firebase Realtime Database
I am working with a ESP01 module with AT Firmware, I have been trying to establish a communication between ESP01 and the Firebase database to read and write some numerical value but right now I am ...
1
vote
0
answers
43
views
Can't read in Realtime Database
I'm using Realtime Database to read and write some data in Firebase.
The code for writing works perfectly and so does the authentication step, but when trying to read it skips the code. I obviously ...
0
votes
1
answer
32
views
Avoiding duplicate data in a Realtime Database
In a realtime database (on Firebase), I have the following rules for the collection called Resource:
{
"rules": {
....
"Resource": {
".read": true,
...
0
votes
1
answer
25
views
limitToLast() is not working in firebase realtime
When building a query to select the latest data in firebase, all data is selected instead of the amount specified in the argument. I noticed that this problem also exists in the first message ...
0
votes
1
answer
39
views
React Firebase Anonymous authentication
I am trying to add an anonymous authentication functionality in Firebase. When user logs in anonymously, it is also creating an entry in Firebase Realtime Database.
The issue is that when user logs in ...
0
votes
0
answers
23
views
what i causing my registration page not to go to the login page, yet the button onclick is well provided in the java code
I have the validate User and write account to firebase methods aswell.
I adjusted the read and write settings in my firebase database, I also disabled SignIn methods that rely on "cross-origin ...
0
votes
1
answer
56
views
Firebase Reatime Database deploy error "TypeError: functions.database.ref is not a function"
The code seems fine, the modules needed seem up to date, the link to firebase is correct. However the function will not deploy and gives error...
TypeError: functions.database.ref is not a function
...
0
votes
0
answers
23
views
Update calculation values in Firebase RealTime Database
I created a simple database, when the user enters new data a database is created to calculate the number of posts entered by the user and it works well in the add-on, the problem is that during the ...
0
votes
2
answers
166
views
Configuring Firebase in node red
I am doing a project on IOT and I'm using Firebase Realtime Database as the database in Node red but I cannot connect these two together. I am using node-red-contrib-firebase to connect with firebase
...
0
votes
1
answer
34
views
Firebase Database retrieve single entry if timestamp updated
I have a database that looks like this:
path1 > uid0 > node
> uid1 > node
> uid2 > node
The node contains a timestamp equal to ServerValue.TIMESTAMP.
If I perform the ...
0
votes
0
answers
29
views
Flutter with Firebase Real Time Databases
I'm new to Firebase Real Time Databases.
In my Flutter App I'm trying to set up a connection to my database but unfortunately I can't fetch any data. From my knowledge I set everything up as it's ...
0
votes
1
answer
39
views
Firebase RTDB Completion Callback Not Catching Errors
I am missing something in what the completion callback actually captures, as far as errors are concerned. When I pass bad data to the update call, it simply errors out and stops processing.
export ...
0
votes
1
answer
36
views
.setValue(null) vs .removeValue() in Firebase
What is the difference between .setValue(null) and .removeValue() to delete a value in the Firebase Realtime Database? I mean is there any technical reason to use a particular method?
I saw these two ...
0
votes
0
answers
16
views
Issue integrating Firebase Realtime database with Dialogflow using inline editor
I am having issue ingrating my dialogflow intents with the firebase realtime database. I have a database in firebase that only has a single key/value pair that has the address. I have also initalized ...
0
votes
1
answer
24
views
Set child name for post request for firebase Kotlin
How I can set my childname for post request for firebase realtime database. I use ktor 2.3.9 and I can make post request, but when I do it sent information break firebase Json, and i can't use data ...
0
votes
1
answer
48
views
I cannot read from Firebase Realtime Database Emulator (but I can when using the production database)
I am a new Android developer and am using Firebase Emulator to test my project during development. My project uses both Firebase Auth and Firebase Realtime Database. When connected to the emulator, ...
0
votes
1
answer
19
views
how to add indexOn to realtime database emulators [duplicate]
I'm trying to add .indexOn to fireabase.json for using sort and filter on realtime database emulator. But no matter what I do same error, error code below, keep occuring.
InvalidArgumentError: Index ...