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
0answers
7 views

Child node division

I wish to know if I can push the data to achieve a tree arrangement as shown in the code.I want to be able to list all the children belonging to a particular product.If yes can you tell me how to ...
0
votes
0answers
12 views

How To make ListView for the database Below?

I build an android project app by flutter and made a dashboard by C# WindowsForm ( To create the database ) But I do Not Know how to retrieve data to the mobile app for this form of database on ...
0
votes
2answers
9 views

Can I change the order of children in firebase

firebase stores data according to the order of saving. Is it possible to tell firebase to store the child on top of / after this particular child? For example if I want to save the new data right ...
0
votes
0answers
21 views

How to access parent of child node in Firebase Realtime Database?

My Firebase Database Image In Firebase's Realtime Database, I am trying to access the name of the parent node being given the name of the child node. However, .parent seems to require a reference to ...
0
votes
0answers
18 views

How to Prevent Unecessary Data Download from Firebase Realtime Database?

I am using Firebase Realtime DB to add user data. The DB only gets called when setting the data which is an object with two properties (nothing big). Now everytime I create a new user and adds his ...
1
vote
1answer
19 views

App crashes while setting a CircleImageView with Picasso in FirebaseRecyclerAdapter [duplicate]

I'm trying to display a RecyclerView with data from firebase. I don't know why I get this error: Process: com.example.lapitchat, PID: 29868 java.lang.IllegalArgumentException: Target must not be ...
1
vote
0answers
15 views

Do a debounce with Firebase Functions

I sorta wish to make something like this with firebase functions but slower. So I write to the realtime DB and after some minutes it will set to false. This is my attempt: const debounce = require('...
0
votes
0answers
15 views

The activity restart after write to firebase realtime database android [duplicate]

when i write to firebase database after write the activity will restart and start the mainactivity this is a activity for one example public class BloodNewPost extends AppCompatActivity { ...
0
votes
1answer
17 views

Swift firebase my database got a little complicated how should I access this child?

Im using firebase as my database. So my database got complicated and I got stuck in accessing a specific child. I have this snippet: for child in snapshot.childSnapshot(forPath: "rated").children{ ...
0
votes
1answer
12 views

Firebase realtime database write rules

I have a question about the firebase realtime database rules. Somebody creates an account and that account creates a path in the realtime database: The structure is simple (key, userid, other data). ...
0
votes
0answers
21 views

Update data in firebase using android

I am beginner i have some issue i want to add rating points with person number and total rates , initially person# is 1 and total_rating is zero. i want to add rating it update total rates ,these data ...
0
votes
2answers
72 views

How to get all true values

I have a Firebase structure like this: "userObjects" : { "fP8g5kxrjnBhYTiUxjF6Pdc5xfgP" : { "objectsInLists" : { "603648351" : { "Top" : true },...
0
votes
0answers
22 views

Sorting Firebase Recyclerview after a button click

I have a recyclerview that contains data, the data was random at first, then I want to sort the data depends on what button the user clicks. I'm using the orderByChild() method, but I don't know how ...
0
votes
0answers
15 views

How do I get the data which didn't changed from firebase realtime database? [on hold]

I can't get the data which is not moved. How can I get the data? I can get only moved, changed, deleted data through ValueEventListener or addValueEventListener. And DataBaseReferences has getKey() ...
0
votes
0answers
16 views

Creating chatapp using FirebaseRecyclerPagination

I'am trying to create a chat app using Firebase as database. I want to implement FirebaseRecyclerPagination because I don't want to load all the chat right away I want it to load by a certain number ...
0
votes
0answers
20 views

How does Android studio (javacode) detect duplicated data in real-time firebase

When duplicate data comes into a certain child of the database, existing data is deleted and only new data is left. For example, as shown in the picture, userName 33 and 44 already exist and should be ...
0
votes
2answers
32 views

Table View Not ReloadData after Unfollow User swift

I am using firebase when I follow user his post show up nicely in the UITableView . but when unfollow him , his post still in the UITableView. UITableView not reloading data after unfollow. View ...
-2
votes
1answer
37 views

Change the package name for the app published in Google play store

I have launched my first app yesterday. Later I realized that package name looks weird from its application, how can I change it? It involves Firebase real-time database with authentication support. ...
1
vote
0answers
16 views

geofire.removeLocation(key) Does not remove Location

I am trying to remove a users location from the firebase database but it wont remove the key when I call This code is in a Service. geofire.removeLocation(uniqueID); UniqueId is generated like this ...
0
votes
1answer
32 views

How to get response from firebase function to firebase static index.html

I am try to getting my firebase database response in firebase static file of index.html. In firebase index.js, am getting database and returning the all ref by getUsers method then get response ...
0
votes
0answers
34 views

List is not binding properly, getting list null

I have a problem regarding list binding in the web app with firebase and angular7. The problem is as follows: 1-> I want to get list of users for and I am getting them and I am pushing them into a ...
0
votes
0answers
23 views

Save button images to firebase Xcode

I have a UIViewController that I would like users to be able to post some information to firebase. I previously had a single UIImageView in which a user could upload one picture, but I recently ...
0
votes
1answer
30 views

How to cast a snapshot value into a dictionary value with typescript?

How can I convert a snapshot value into a dictionary value of type [String: AnyObject] I am trying to accomplish the bellow line in swift but in Typescript, so that I can loop through the keys. How ...
0
votes
0answers
10 views

Firebase security rules for blocked users

I am trying to set a security rule so that if user A has blocked user B then neither user can read or write data relating to one another - I want the blocked users to be hidden from one another too so ...
0
votes
1answer
28 views

I want to update user profile picture in all the posts as well he posted when user updated/Change his profile picture

enter image description here I am updating user profile picture and it works perfectly in all activities i want. But problem is that it does not update user profile picture in all the posts user ...
0
votes
1answer
16 views

How to use a value outside dataSnapshot function?

In the code below i get the number of children but i want to use it outside the onDataChange method. mRef.addValueEventListener(new ValueEventListener() { @Override ...
0
votes
0answers
34 views

Is there a way to test if there is a child attached to url of an image and compare it to hide image if there is no image

I am trying to hide an ImageView when there is no Image (child is not present with url) (I use firebase as backend but I don't know how to compare values in my case I need to compare ""==childs value),...
0
votes
0answers
16 views

How to Send the Recorded Audio file to firebase in react-native [on hold]

I want to extract the recorded_audio.wav file and send it to Firebase realtime database and the path of recroded file is given below. Recording path :"/storage/emulated/0/recorded_audio.wav" ...
0
votes
1answer
34 views

Firebase nodejs serve error “AssertionError [ERR_ASSERTION]: missing path”

Getting below error message after issuing command "firebase serve --only functions,hosting" ! AssertionError [ERR_ASSERTION]: missing path at Module.require (module.js:594:3) at require (...
0
votes
0answers
11 views

Firebase Onchildadded listener does not wait and when called in multithreaded environment

I am triggering setvalue and Onchildadded listener in a multithreaded way through akka to first push the chat in the firebase and then waiting for onchildadded method to do something . But Facing two ...
0
votes
0answers
17 views

Deleting a node using a transaction not working

I am trying to delete a node from my Firebase real-time database using a transaction. I am using a transaction in order to make the user aware if he/she was the one deleting it, or if someone else ...
0
votes
0answers
29 views

Firebase-admin: access data from an unknown child node name [on hold]

I want to access the data from the child of the Chats.But the child nodes have random names. How can access the data in the child without knowing the child node name in python? My Firebase structure :...
0
votes
0answers
15 views

How can I add a new child to existing parents in Firebase

I have the following structure in Firebase: Now, I want to add a new node to the children of "rate-comments", call it "0-2-9". In Firebase console I can easily click on the plus sign next to the ...
-2
votes
0answers
10 views

Firebase Storage getDownloadUrl() Portugues [on hold]

Erro ao utilizar o método getDownloadUrl() do fireBase, gostaria de salvar a imagem no Storage e retornar a url da imagem da o firabase. //Recuperar local da foto Uri url = taskSnapshot....
1
vote
1answer
30 views

Vuex and Firebase, store additional user info

I have a function where i'm creating a user with Firebase and Vuex, and want to store some additional information about the user. When I create a user, I run the code below, where payload contains ...
0
votes
0answers
7 views

Firebase query into an array of objects, which then has an array of objects

I have a document in my "items" collection like so: { choices: [{id: 1, players: [{id: 101, name: "Drew Brees"}, {id: 102, name: "Tom Brady"}]}, {id: 2, players: [{id: 103, name: "Aaron Rodgers"}]}] ...
0
votes
0answers
33 views

Auto redirect to MainActivity when Save/Update data to FirebaseDatabase, Why?

when i am save/update data to firebaseDatabase on click button after saving data the activity auto redirect to MainActivity. i did not use any intent for redirect activity but it done automatically i ...
0
votes
0answers
19 views

cannot continue or break a loop because of JavaScript asynchronous problems [duplicate]

My aim is that I just want to know if some data exist in an array in the firebase database, and based on that the loop should continue execution or get repeated again. I tried to use callback ...
1
vote
1answer
22 views

cant able to show all firebase data to line chart

I am trying to show my firebase data into my line chart, but it only showing one data from database and I want to show all the data from database. I am just new at this so if anyone can help me with ...
-1
votes
0answers
34 views

How to display usernames of user's from firebase realtimedatabase

I cant figure out why my code wont display my users usernames in A UIlabel? My code is : @IBOutlet weak var userNameOut: UILabel! var loggedInUser = AnyObject?.self var databaseRef = ...
0
votes
2answers
37 views

Retrieving specific data from Firebase realtime database in swift 5.0

I'm not good in firebase, but I'm making one project regrading chat app. i have created one not node GroupChat inside that i create group with including members. now i want to check that if userid is ...
0
votes
1answer
13 views

What is the .get() method equivalent to query firebase in typescript using firebase functions, when using a realtime database?

I am looking to fetch from firebase using typescript in cloud functions. I have looked here and found the bellow code, but am unsure if this is how you fetch or not (and am currently not able to test ...
0
votes
0answers
23 views

converting relay back end to firebase

I'm setting up Firebase real-time database on a game that was previously sending data through a node relay server. All the data was structured as JSON, for the original game. How can I structure my ...
0
votes
0answers
15 views

React Firebase REST API: Could not parse auth token

I am trying to add a post to firebase, using its REST API. As described in docs, I pass form data and idToken. https://firebase.google.com/docs/database/rest/auth#authenticate_with_an_id_token Here'...
-3
votes
0answers
32 views

How do I pull data by an x amount instead of the whole list, and then later continue refreshing more x amount?

Lets say this is my example data: { "b-0001":{ "title":"Batman", "time":1558556303855 }, "a-0001":{ "title":"Hello", "time":1558556340110 }, "c-0001":{ "title":"haha1", ...
1
vote
2answers
23 views

Is there a way for me to get all the string and convert it into a double and add all of them?

Error I am still new atFirebase and I wanted to ask in this image Firebase in the blue line. How do I turn them into a double and finally add all the blue line. Basically, I wanted to add all the ...
0
votes
0answers
9 views

How to chain the Firebase listeners so that one listener is attached inside Oncomplete of another

My problem statement is : I want to do certain task on Firebase by using setValue and on its OnCompletion , it should fire Onchildadded listener which again in its Oncomplete will fire another method
0
votes
0answers
19 views

How to retrieve data from firebase in descending order with “timestamp”? [duplicate]

I'm trying to get data in descending order from firebase Database Structure 0G6K7tgHDVXTwPYV5NwhANnWChF2 feelings -LfP-g3QnO7WmZ3xE8df currentFeeling: "Angry" reason: "My phone broke" ...
0
votes
0answers
14 views

How to upgrade a firebase cloud function code to version 1.0 or higher

I was trying to Push Notification on real time database change using firebase cloud functions , I searched the web to learn how to do it then I found a code on how to do it , I tried to upload the ...
0
votes
0answers
20 views

Fetching Firebase Realtime Database of array

I want to fetch multiple specified Childs. Is it possible to do so in one fetch? I have tried to do this with orderByChild and equalTo My Data Structure: "lections" : [ { "id" : 1, "title" ...

http://mssss.yulina-kosm.ru