Questions tagged [firebase-realtime-database]
Firebase Realtime Database is a cloud hosted, NoSQL, JSON database that provides offline caching and synchronization. Do NOT use this tag for questions about Cloud Firestore; instead use the [google-cloud-firestore] tag.
38,439
questions
1
vote
0
answers
11
views
Unsubscribe from ChildAdded events in Unity C#/Firebase?
Problem:
I am subscribing to a ChildAdded event and unsubscribing to said event upon clicking 1 of 2 buttons. E.g., if I click the "DisableGlobalChat" button, then I'd expect the current ...
1
vote
0
answers
17
views
NextJS useRouter hook causes TypeError: Cannot add property 0, object is not extensible error calling router.push()
I am interacting with Google Firebase to create a user record in my database before then redirecting a user to an index page of sorts. I seem to be hitting an issue using router.push() causing the ...
1
vote
0
answers
14
views
Preventing firebase Out of memory exception using Realtime database
I am trying to get data of a specific user when they log in, currently this is working well using the .child(userId) & .get() methods for a small amount of data/records. However, I created over 50,...
1
vote
1
answer
27
views
How to delete an item in firebase realtime Database when clicking a button?
I am making a table that shows me data from some sensors, this table shows the data from a database hosted in firebase. As data is entered, the table will display. I'm having trouble deleting the data ...
0
votes
1
answer
20
views
Firebase Database rule for unknown child nodes
I'm creating a chat app where data are stored like the image given below.
I want to add a validation rule for "Text" to be less than 300 characters long. I used the validation rule:
"...
0
votes
1
answer
22
views
Regarding Firebase database
I have saved the user Info and cart items in a database and i want to retrieve this information for a specific user.I am unable to target the user.
I have created child for user and each user has his ...
0
votes
0
answers
13
views
Uncaught TypeError: firebase_compat_app__WEBPACK_IMPORTED_MODULE_0__.default.storage is not a function
I'm a beginner in React JS and I'm stuck on making an Instagram clone.
While I was trying to upload a file with firebase.storage() in Firebase, I saw that it doesn't work and gives me an error saying
...
0
votes
1
answer
22
views
Datasnapshot to model
I am trying to read from Firebase Real-Time Database and save and type cast the data.
Getting this error FormatException: Invalid radix-10 number (at character 1) when trying to read the data with:
...
1
vote
0
answers
30
views
Xamarin Firebase - How can I store the UID into realtime DB [closed]
I am trying to save the uid into realtime DB so that I can get the User Specific posts. Can someone assist please, or is there a better way of doing it.
private async void SignUpButton_Clicked(object ...
0
votes
1
answer
14
views
react firebase makes multiple requests
I am trying to get data from firebase and pass it to a state array but firebase makes 2 requests
useEffect(() => {
const uid = '';
const dbRef = ref(getDatabase(app));
get(child(dbRef,...
0
votes
0
answers
10
views
User get 401 when trying to fetch data from firebase realtime database
I am using REST API in my vuejs app to access firebase realtime database, I authenticate users using Google provider and get access token.
Whe I try fetching data using access_token https://rtdb-url/...
0
votes
0
answers
36
views
how to get id react js realtime database
useEffect (()=>{
const dbRef = ref(getDatabase());
get(child(dbRef, `AllUsers/${id}`)).then((snapshot) => {
if (snapshot.exists()) {
console.log(snapshot.val());
} else {
...
0
votes
0
answers
34
views
Arduino Error : expected type-specifier before 'StaticJsonDocument'
I was trying to connect Arduino to the Firebase Realtime database for at least 8 hours straight.
I got so many compile errors, most of which were from the library header files that I included in the ...
0
votes
1
answer
36
views
firebase react for each loop does not end
I want to get data from firebase real time database and push it in a react array but the snapshot does not end and loops forever
Here is a link for better understanding. The loop should stop after the ...
0
votes
0
answers
26
views
Flutter: Items getting duplicated locally on toggling a button rapidly [closed]
I'm trying some code with Flutter & Firebase. Initially, I had 2 items on the server (Firebase). On toggling a favorite button rapidly, the items are getting duplicated (not on the server, but ...
0
votes
0
answers
18
views
Storing all Nodes Of parent from firebase into list? [duplicate]
I am trying to read all data from each node into list and return that list but the list keeps getting empty
fun getALLPayee():List<Payeeinfo>
{
// Log.d("hh","rr")
...
0
votes
0
answers
26
views
Xamarin Firebase Realtime Database ObservableCollection ScrollTo Problem
I have problem my ChatAPP. I use backend for realtime messaging Firebase.
So my code working like that;
I will subscribe my firebase chatapp database everthings is work, messages are coming realtime. ...
0
votes
0
answers
25
views
NullPointerException: in firebaseUser [duplicate]
I am making chatting application and getting error showing in logcat at Userfragment.java:
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang....
0
votes
2
answers
36
views
How to show data in realtime database firebase in react js
import React, { useState ,useEffect} from 'react';
import { Link ,useHistory,useParams} from 'react-router-dom';
import { getDatabase,ref, child, get } from 'firebase/database';
import { auth, db } ...
0
votes
0
answers
28
views
How to insert URL Links (from Firebase) per image (array) on an animated UIImageView?
Is it feasible to include a URL link for each image? It's a DIY switch ad. I retrieved the image URLs from Firebase. I then animated each image for three seconds. It is now clickable and takes you to ...
0
votes
0
answers
10
views
Firebase RTDB vs Firestore costs? [closed]
Trying to calculate the costs of an app with basic functions similar to Twitter (e.g post text messages, comment, like, share). However, communication would be limited to ONLY texts e.g no pictures, ...
-1
votes
0
answers
12
views
firebase database in unity editor sometimes not working but its working on android
I dont get any error or something. Its working on android but sometimes not working on Unity editor. My verison is 2020.3.10f1. The firebase auth is work perfect on editor and on android. Just ...
0
votes
1
answer
15
views
Firebase - Realtime databse : How to display only data recorded today?
I'm on a vuejs and firebase project.
And I would like to display only the data recorded today.
But I don't know how to do it.
Can you please help me.
created() {
const dfRef = db.ref("...
0
votes
1
answer
34
views
Calling useState inside a function causes maximum call stack size exceeded
I am trying to set the data returned from firebase in useState variable but I got maximum call stack size exceeded error in console. However console.log(items, "items"); returns the actual ...
0
votes
0
answers
28
views
Getting error "Default FirebaseApp is not initialized in this process com.example.ecom. Make sure to call FirebaseApp.initializeApp(Context) first"..p
I have initialized firebase but still, I m getting this error. please, anyone, help?
build.gradle(Module)
plugins {
id 'com.android.application'
}
android {
compileSdk 32
defaultConfig {
...
0
votes
1
answer
32
views
Realtime database: how to add data from one reference to another reference?
How add this -N8O6lC8cGgMfLE_8BIR data from the reference Colis Futur to reference Colis Requetes
Here's what should happen. just below
-1
votes
0
answers
20
views
firebase Which is the best way for roles? [closed]
I am working on an application.There will be only one admin in the application.How should I assign this role?
by assigning a value to this user in the database?(ı use firebase realtime database) ...
0
votes
0
answers
17
views
Is there any way to query double nested in Firebase Realtime? [duplicate]
I want to query by userId from the parent that is comments in the Firebase Cloud Functions. But I don't get anyway how to do it.
Thanks!
0
votes
2
answers
33
views
Wait until the task finished then return [duplicate]
I created a login mechanism with phone number. I want to check if the phone number is already registered or not, but the function I created will always return false. How to make it wait until the task ...
0
votes
1
answer
35
views
FlutterObservatoryPublisher Error on iOS version of Flutter App
I'm getting this error from my flutter debug console "[VERBOSE-2:FlutterObservatoryPublisher.mm(143)] Could not register as server for FlutterObservatoryPublisher. Check your network settings and ...
0
votes
1
answer
30
views
Accessing parent and child nodes in Firebase for Android
I want to access these child node data from the Firebase Realtime Database and display them in my app in Android Studio. How do I write code for that?
0
votes
0
answers
39
views
The wallpaper is cropped and zoomed [closed]
I'm making a wallpaper app. My application works with FireBase. The pictures I choose from the program are cropped, zoomed in and their image is distorted.
I tried many solutions but no success.
...
0
votes
1
answer
29
views
i can't send data to firebase realtime database
I am new to firebase and I am learning from YouTube. the course is two year old so i am doing the same as they do in video but I am sure the things are changed since.
I have two inputs name and rollno ...
0
votes
0
answers
19
views
Preventing firebase Out of memory exception
Aside from sharding your real-time database & setting largeHeap:true on the Manifest file, how else do you prevent an Out of memory exception on the client-side.
Assume you have 100k+ users in ...
-1
votes
0
answers
29
views
Firebase realtime database Download performance
Is this normal?
My storage in firebase is 565kb. But when try to download the data by using angular application the using of downloads showing that I was downloaded 1.5 mb also the all day using ...
-1
votes
0
answers
12
views
I want firebase specific data [closed]
enter image description here
mujhe agr node 1 ki ideas node 2 i id se match karati hai to action perform hona chahiye aisa koi code ho to deijiye
I try many things but not solved
please
thank really ...
1
vote
0
answers
19
views
Setting up user login/authentication and displaying profile based off user [closed]
I hope all is well. I have a web app using firebase that I want to allow users to signup/login and save their information for their profile in the real-time database. I also want to display some of ...
0
votes
0
answers
14
views
Firebase Database Configuration
I am new to firebase and really need a walkthrough on setting up my user profile login to my database and getting this info to display on certain parts of my page. If possible, could someone give me a ...
0
votes
1
answer
33
views
Kotlin button not woking. Same setup works in a different layout
I have a 'signup' page that works correctly and adds the user to a Firebase Realtime Database.
Same Code, with modifications to accept different parameters and sourced from a different layout, does ...
1
vote
1
answer
45
views
Flutter list stores values using for loop, but loses these values when used outside the loop
I am trying to read data from a firebase real time database and store it in a list to use in my flutter app.
As seen in the code below, I start by creating a reference to the database. I also create ...
1
vote
1
answer
27
views
How to get data with ID from Firebase
Im currently working on Comic Reader app, and I want to code a Latest Updates page where all the new Chapters apear, I made 2 Firebase Database Childs one is for the Comics containing all the ...
0
votes
0
answers
16
views
Accessing loop variable inside for loop returns undefined [duplicate]
I've been working on a project and I'm writing a simple function that takes an array of student roll numbers, and gets the list of companies they've been placed at, from a firebase RTDB. here is the ...
0
votes
0
answers
9
views
Recieved firebase answer to Unity project but not to Pico Device
I have a unity project in which I send subscribe to firebase and receive a callback every time a field changes - which I need to process according to the status of the fields.
FirebaseDatabase.Net is ...
0
votes
0
answers
19
views
Firebase image upload is not working i don't have any error
I am trying to create app with react and I want to upload multiple image in firebase storage everything is going fine but my image are not uploading i can't figure out why below is my code for upload ...
0
votes
1
answer
25
views
Submitting and retrieving data for user profile
I am new to using firebase and I have a web app that I want to allow users to submit and save their information for their profile in the real-time database. I also want to display some of the ...
0
votes
1
answer
24
views
Unable to pull database from realtime database of Google in next js app
Currently I am not able to pull the database from Google Realtime Database and I am not sure what I am doing wrong. Below is the code that is in my Categories page.
import CategoryHeader from '../../...
0
votes
1
answer
27
views
Why does firebase return undefined in my component but I can see the object in console.log when I read my database?
Im using Next.js and Typescript.
I'm trying to implement a custom hook for reading my data and outputting the object. I'm using the firebase realtime database. My data is an array of objects. Firebase ...
0
votes
1
answer
40
views
Saving User Input Information
I have a web app that I want to allow users to submit and save their information for their profile. There are two sets of information that I am trying to save, but they're not being stored in the same ...
0
votes
2
answers
36
views
Firebase Firestore Getting specific fields from my document flutter
I am trying to get some fields in my firestore collection/document. I want to display them in some places in my code.
How can i get a particular field, like maybe phoneNumber from the user's field in ...
0
votes
0
answers
42
views
How can I keep the total number of people the user is talking to?
I have a mobile app where users can talk to each other. I am using firebase real time database in my application. In the application, I keep and show the total number of people the users are talking ...