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 [tag:google-cloud-firestore].

0
votes
1answer
15 views

I can not get user's data from my firebase database in android?

my database structure is : rootNode->node1->Uid->RandomId(which i get from push.getKey() method) then my data->(name, email , phone) projectName: SampleUsers Uid ...
0
votes
0answers
12 views

Firebase database updates same value

I am new to database and firebase, I have been working on updating the firebase database. But when I update the firebase it only updates the first value without changing other value. This is the part ...
0
votes
0answers
16 views

Populating Recycler View From Two Different Nodes in Firebase Android

I am trying to populate my recycler view from two different firebase nodes but am getting error "Can't convert object of type java.lang.Long to type com.example.manishgupta.xxxx.models.GroupsListModel"...
0
votes
1answer
14 views

Conditionally update data in Firebase

I'm trying to figure out a way to update my Firebase Database on the condition that the 'admin' has access to overwrite the data. When the admin enters a parking location, I wanted it to look through ...
0
votes
1answer
14 views

Ionic 4 - Firebase - Storage not sending data to realtime Database

I'm uploading images to Firebase storage, and then i want them to go to the real time database, this code was working in ionic v3, but now it seems something is wrong since the data goes to the ...
0
votes
1answer
8 views

Value of firebase functions onwrite sometimes is null

I'm trying to implement an Android ordering system and I'm using Realtime Database. To send notifications I'm using Firebase Functions in JavaScript. Each user is stored in the database along with ...
0
votes
0answers
16 views

Fetching specific data from firebase in android studio

Trying to fetch related data from firebase I am new in Android studio and I am stuck here, want to retrieve data from firebase where "del_id = 1" and "date = 2019-3-18" but I don't know how to write ...
0
votes
0answers
10 views

Firebase real time database high consumption of data

I'm the only real user (testing for now) for my database and here is my data downloaded from my database since I set FirebaseDatabase.getInstance().setPersistenceEnabled(true); The 12 marth (RED ...
0
votes
0answers
10 views

Force a ValueEventListener Firebase

I have a ValueEventListener that I want to execute every time a person joins a room. This listener will update the list of users in the room and display these users on on the screen. The issue is, ...
0
votes
0answers
7 views

Firebase Database - Check if Child Exists

I have checked similar topics but there are codes using listeners and I am not sure how to use them. Could you please help me how to use it with an efficient way (minimum data exchange)? Thanks in ...
-1
votes
0answers
8 views

How to resolve this error (W/SyncTree: Listen at / failed: DatabaseError: Permission denied)?

First I signup through firebase authentication method. mAuth.createUserWithEmailAndPassword(email, password) .addOnCompleteListener(new OnCompleteListener<AuthResult>() { ...
0
votes
0answers
7 views

I need to retrieve the parent node while searching the sub child node's data

I am attaching a picture of my database structure. Basing on it i need to retrieve the details: email, name, phoneno while searching for "dld". could someone help me. I am new to Firebase and have ...
1
vote
1answer
16 views

How to remove the child node while retaining the parent firebase

From the image above, I want to remove all the child under item3 without removing parent item3, 1234567 and User View. Following is what I did. Remove is successful but all the parents node are also ...
0
votes
1answer
20 views

Firebase - app unresponsive for a long time (because of data syncing?)

I am working on a RunKeeper-like app. This issue happens when the app has captured lots of location data, and all the data were saved locally because of no internet connection. When I connect to the ...
0
votes
0answers
15 views

Update Ui after change in database Occurs

I'm developing an App in Android Studio which takes data from RealtimeDatabase Firebase and I have the following method, I can load all data at first run, but when I update the database after the UI ...
0
votes
1answer
24 views

Problems with array in addChildEventListener (Firebase)

Integer scores[] = new Integer[10]; int count = 0; I have some data that I want to put into array. I put it in onChildAdded, but if I need to get the data from the array out of the onChildAdded, ...
0
votes
0answers
17 views

sending twilio sms via cloud functions getting error “firebase app does not exist”

Attempting to trigger a sms send when the value "length" is bigger than 40. Currently receiving the following error; Error: Error occurred while parsing your function triggers. Error: The ...
0
votes
0answers
21 views

two different app logins on single Firebase project Problem

I have a Problem in the login. Basically, I tell you my scenario. I have two apps both are connected with a single firebase project. One app contains driver login and other app contain customer login ...
0
votes
1answer
20 views

Remove object from list on child removed android

I have an arrayList of objects of a class. This class contains data received from Firebase. but I want to remove an object from the list when a child is removed in firebase, but two objects don't ...
0
votes
0answers
30 views

How do I check if a child exists in Firebase xamarin?

I'm using firebase for c# xamarin and I want to do for each user it will check if he has counter, and if not it will generate for him. I tried it like this: try { FirebaseResponse resp = await ...
0
votes
1answer
47 views

Current Latitude And Longitude Not Shown

I am making an app in Android Studio where the user can save their current latitude and longitude in Firebase. I am using this code: public class SaveLocationActivity extends AppCompatActivity ...
0
votes
1answer
33 views

Sharing Android Studio project to Github without giving access to firebase database

So I have a personal project, which is on github, but is now private, because it uses firebase database, and using the app lets you control my house lights, etc. How can I make my app public without ...
0
votes
1answer
24 views

How do I prevent someone from writing if his data doesnt contain a specific key?

I am new to firebase database and I want to add a rule that can prevent someone from writing if his data doesnt contain a specific key. my firebase database rules: . In this image: the 1ST key ...
0
votes
1answer
19 views

iterating in firebase nodes by arduino

I want to get the sensor values from NodeMCU and wanted to upload it to firebase. My database structure is as shown in the figure. I want to iterate through the children of the node "slots". I needed ...
0
votes
0answers
23 views

Send notification when data is updated in the Firebase table swift

I installed the Firebase cloud messaging application, but I want the firebase table to send a notification when the data is updated. For example, I want to turn off this time with the timer and send ...
0
votes
1answer
16 views

Import Multiple JSON files in Firebase Database

In my project I have a recycler view which contains two items. First Item pulls data from a.json and second item pulls data from b.json file. In Firebase database I am able to pull data through only ...
0
votes
0answers
18 views

fetch firebase realtime database to web page with pagination

I am trying to fetch data from the firebase database, MySql was so easy to retrieve data, but I am so confused with firebase. below is my data from the firebase database. under the Product, the first ...
0
votes
0answers
35 views

Update value in Firebase and React

I have added a menu in my database in firebase and now I want to edit the menu in the database. But whenever I send a request to update the menu it only updates the first menu. No matter which menu I ...
0
votes
0answers
24 views

What is $ cost of query in Firebase Realtime database?

I have gone through the pricing of Firebase and it's realtime. But it is hard to understand side by side Dynamodb(I know AWS DDB is very different than Firebase Realtime DB, but in my app I can use ...
0
votes
0answers
14 views

Firebase Database Unity, how to Nest data?

I have about 200 strings that I have uploaded onto my database in Unity (RealTime Database) and for each string (name) I need to have a score associated with it. Here is a question about querying ...
0
votes
1answer
34 views

Swift Firebase UITableViewCell loads before Data to populate cell is available

I am pushing data which is an array of strings to a tableview controller. These strings are "uid's" which are users in my database. With this array I make a call to firebase to extract all users and ...
0
votes
2answers
59 views

How to retrieve all value from firebase?

DATABASE I wanted to retrieve all the value from my firebase, but it retrieved the last one only which is "hjh" , what did i do wrong? This is my code public class MainActivity extends ...
0
votes
1answer
17 views

Iterating through DataSnapShot.Children stops the execution of code (Unity, Firebase)

I'm writing a method that retrieves the data from Firebase in Unity (C#). I can successfully retrieve the data. But when I iterate through dataSnapShot.Children to assign values to my certain ...
0
votes
0answers
17 views

NavigationDrawer Activity leads to blank screen

I've been struggling to figure out what is going wrong in my code. I have a firebase app that after it authenticates it goes into a navigation drawer however it loads to a blank white screen. Testing ...
-2
votes
1answer
23 views

Firebase Realtime Database is slower than local MySQL Server

long startTime = System.currentTimeMillis(); FirebaseDatabase database = FirebaseDatabase.getInstance(); final DatabaseReference ref = database.getReference("server/saving-data/...
0
votes
0answers
12 views

Firebase firestore query returning old data

I am running a query in react-native and having an issue that the data returned is old. var query = firebase.firestore().collection('rooms') .where('roomName', '==', roomName).where('archived', '=...
0
votes
0answers
18 views

How to retrieve data from firebase realtime database use timestamp?

this is my db structure : https://drive.google.com/open?id=15067yFPeeGoQH9kaagw6vxw-zoDFXmBN I want to retrieve data from the child "nilai" based on time using timestamp, then enter it into the ...
0
votes
1answer
16 views

Adding data to Realtime Database

I'm trying to add a user to firebase storage from my android app, I created a User class : class User { var userId:String = "" var firstName: String = "" var lastName :String = "" var ...
-1
votes
0answers
14 views

How to implement a File Manager in Angular? [on hold]

Right now I'm using Angular for my front-end and Firebase for my back-end. At the moment I can fetch the files from database provided the user is authenticated and list them all. Here is a link to ...
0
votes
1answer
18 views

How to use Firebase retrieved data outside onDataChange functions like in Toolbar etc [duplicate]

Here I am adding the snippet where I am successfully retrieve data from firebase and use it as in my textview inside onDataChange() function but when I try to use it outside this function then it's ...
0
votes
1answer
32 views

I want to delete the data from app using firebase [on hold]

There is some data in my firebase store and this data is being propagated to my app but after some time I want to remove that data from my app (when the data is too old). I want to know how can I do ...
0
votes
0answers
22 views

Android crashing activity after entering input to AutoCompleteTextView

I'm developing a weather app, i used OpenWeatherMap API. I have a problem with searching cities. There are some city list on OpenWeatherMap website to use your project. I'm using city_list.gz which is ...
0
votes
0answers
11 views

E/AuthUI: A sign-in error occurred. com.firebase.ui.auth.data.model.UserCancellationException: Unknown error

Hello everyone i am getting this unknown error while signing in user via Firebase Auth ui i think this is because some version mismatch in my .gradle below is my Build Grade file. Can some tell me ...
0
votes
0answers
9 views

get a data by key firebase laravel

i try to retrieve my data by key using laravel and firebase. and sounds good but when i try to fetch it by column i got an error :Undefined index: Cercle. even in my data i had a column named 'cercle'....
0
votes
0answers
18 views

WebSocketException on Android 9 when using firebase database

I'm using the standard way to connect to firebase database, using 16.1.0 version of the SDK. Problem: The connection is setup perfectly fine for devices below Android 9, but for devices running ...
1
vote
1answer
18 views

Realtime database rules - Check if a given array includes newData.val()

I have a property in my RTDB that can be only one of: false, 5, 15, 30, 60. So I tried to write this condition in multiple ways without any success: // Like in Firestore rules: ".write": "newData()....
0
votes
1answer
33 views

text fields are empty when retriving data from firebase to recycler view

I am trying to build an android application which retrieve data from Firebase real time database. I have coded to display data from Firebase to a recyclerview in fragments. Project was successfully ...
1
vote
2answers
36 views

Cannot invoke 'setValue' with an argument list of type '(Any?, (Error?, DatabaseReference) -> Void)'

I want to send object of structure to firebase. struct commentsData{ var commentsText:String var commentTime:String var commentDay:String var commentMonth:String ...
-2
votes
3answers
59 views

How to delete the individual childs from firebase in android?

I went through various links and solutions delete-child-from firebase, How to remove child nodes and try to use in my project but nothing works.As following the link Deletion of child nodes, ...
-4
votes
0answers
27 views

Matchmaking Android Firabese [on hold]

I have an application which randomly matchs 2 people and let them chat.I am making app with firebase.Can you give me an example code to do randomly match with transaction please.

http://mssss.yulina-kosm.ru