Most voted "realtime-database" questions
47 questions
Sort by count of
-
9
votes2
answers551
views". read" firebase security rules
I created the following security structure in Realtime Database: { "rules": { "receita": { "$chave": { ".write": "auth.uid === newData.child('usuario').val()", ".read": "auth.uid ===…
-
7
votes1
answer169
viewsBroadcasting with Laravel
I’m creating a chat and for that I need to do a real-time mode so I don’t have to drip several times on the server SignalR who does this job, I’m working with Laravel-PHP and read the documentation…
-
2
votes1
answer341
viewsFirebase database query in ordered "relation"
Given the documentation I reached the following bank structure { "users":{ "5511995278831": { "name": "User 1", "email": "[email protected]", "about": "sdf sdf sdf", "sms_code": "10", "active": "1",…
-
2
votes1
answer3814
viewsRegister user with photo in firebase
Good night! Guys, I’m registering users in my app and would like to in addition to the personal data I will save in the database Realtime I would like to also save the profile photo and a cover…
-
2
votes1
answer147
viewsFirebase getDisplayName() returns empty
I have the following code that should return the user data logged in by Firebase, it returns the user without any problem, the ID and the Email, but the value of the name returns empty or null. As…
-
2
votes2
answers1117
viewsCheck if a value exists in the Firebase Realtime Database
I have a database with this structure: what happens is that when creating a new user, I need to check if there is no longer a registered equal nickname, but I am not able to do this. Here’s the code…
-
2
votes1
answer1192
viewsCount the number of records in firebase
Good morning Developers! I’m having a hard time in a project that I can’t move forward, here’s the problem/scenario: We have a screen that brings information, a message, and on the screen there is…
-
1
votes1
answer1181
viewsSave user information to Firebase Realtime Database
In accordance with the documentation says, one should not use the getUid() user to authenticate users to the backend server; instead, use the getToken(). However, I see a lot of code out there using…
-
1
votes1
answer1045
viewsHow to implement a map that shows real-time location - with displacement?
That is the scenario: For example, if I wanted to show all the homes of users of a city (those who are registered in the system) it would be enough to make a request in the database before the page…
-
1
votes1
answer2048
viewsGenerate sequential key with firebase
Good morning ! I am working on an app that saves some user activities and I have a problem to save these activities generating sequential numbers, here is the environment: I have the user logged in,…
-
1
votes2
answers644
viewsReal-Time How it works. Because I’m having problems with my Laravel 5.4 tests
What do I need? I need when a user in the frontend sends a message to the system and the system (Dashboard backend) to receive a real-time notification that is the message just created. I’m doing it…
-
1
votes1
answer2021
viewsref() or Child() when reading firebase web data
What’s the difference between ref() and child() firebase? When should I use one or the other? Is there any difference in performance?
-
1
votes1
answer501
viewsSort firebase list
Currently I use this function to read data from firebase database: function ler() { database.ref(referencia_database).orderByChild('nome').once('value').then(function(snapshot) {…
-
1
votes1
answer1785
viewsDefinition of firebase security rules
How can I define a safety rule that: Allow read and write access to recipes if the logged in user is the user who registered it Allow read access to recipes if the tipo for true Do not allow read…
-
1
votes0
answers125
viewsHow to remove a Node from the database using Firebase Realtime Database for Unity
I use synchronized lists with Firebase Realtime Database for Unity and I need to improve them. I need to find a way to delete a single Item from the list without having to: Download the whole List.…
-
1
votes0
answers390
viewsDoubt how to "read" data in firebase-database
Assuming I have this structure in the bank userId : { Messages : { SenderID : { PushID: { "msg": "Mensagem" } } } I’m using this code to "read" everything inside the "userid" dbRef.child(user.uid +…
-
1
votes1
answer222
viewsFirebase Database Android does not recover data by class
I’m creating an app Android with authentication and database by Firebase, authentication is working and I can write data through a class normally. My problem is that when reading the class data does…
android firebase firebase-database realtime-databaseasked 5 years, 11 months ago Rafael Bandeira Chruscinski 13 -
1
votes1
answer83
viewsI cannot pass the key attribute of the object I want to edit
I’m trying to edit a device inside my CRUD, using Firebase’s Angular 9 and Realtime Database, by clicking on the "Edit" button, I’m redirected to another page so I can change the values of that…
-
1
votes1
answer14
viewsSearch for no results in the Firebase database
Hello, I’m trying to access the items contained within a user in firebase’s Altime, but the return of the snapshot is coming empty, does anyone know where the error might be? const firebaseService =…
-
0
votes1
answer49
viewsEN (Spinner) Firebase Exception: Found Conflicting getters for name: getAdapter
I am making an application where I choose a number in the spinner and write that number in Firebase. this giving the following error: details about the spinner and how I’m recording in firebase…
firebase android-adapter spinners getters-setters realtime-databaseasked 7 years, 8 months ago Garcez 31 -
0
votes1
answer188
viewsReturning the firebase Father node
Hello guys I’m having a doubt on how to catch the parent node that would be in the case of the image o -Kt... I made some codes but not right. protected void onCreate(Bundle savedInstanceState) {…
-
0
votes1
answer283
viewsProblems creating Child in Firebase
I’m trying to add dishes to my firebase database but I’m having some problems so far I don’t know why it doesn’t work. and makes this mistake: Process: meals.com.meals, PID: 1585…
-
0
votes1
answer3704
viewsRecovering Data on Firebase Android with Class
I have this bank structure that is this In my class I have a function called getLocal (), where she would take the name Iguatemi. of this structure. However when performing the query it is returning…
-
0
votes1
answer112
viewsFirebase: App rebooting alone
I’m developing an android app, and I’m using Firebase’s Realtime Database to store the data. There I have a user node, with all the users I have registered through my App. When I make a change to…
-
0
votes2
answers514
viewsQuery result null Firebase
Hello folks I’m having a problem to perform query in firebase database. This is the bank: I’m trying to carry out a search of all the restaurants that have the name Iguatemi, until then according to…
-
0
votes1
answer62
views"Table" for queries only - Firebase
I’m developing an app with firebase (Realtime) and ionic3. I don’t know much about this technology, and I couldn’t clear up a question with my research: It is possible to create a table for query…
-
0
votes1
answer1074
viewsPick up child object - firebase
I have a firebase bank in this structure: { "-L4Wqs3YbAlUgTWElF4Q" : { "receita" : { "-L6m_C46-Mj1py6RtF8H" : { "imagem" : "default", "ingrediente" : [ "ovo", "leite" ], "nome" : "um nome",…
-
0
votes1
answer421
viewsChange structure firebase bank
I made a question here at Sopt on how to do a search on the firebase Realtime database, and @Rosáriopereirafernandes suggested changing the structure of the database Ancient structure: {…
-
0
votes2
answers535
viewsHow to access child node in Firebase?
I have the following tree on Firebase: How do I access to list the data within the node "holes"? I am using the following data listing method: public void recuperaFuros(){ DatabaseReference furosRef…
-
0
votes1
answer93
viewsCounter (Transaction) in firebase fatal error
Guys I’m trying to make an accountant, in fact I’ve used this idea to tell in firebase, which is a correct and safe way to make a counter for firebase. MutableData mData; //Contador +1 ao Firebase…
-
0
votes1
answer63
viewsRecord data in different child classes Android Firebase
I’m trying to record some data in another child class in the firebase, but without success, follows code. However unsuccessfully, when I run the application first the client data is recorded, and…
-
0
votes1
answer129
viewsHow to add Child node in Child firebase android
I would like to know how I can add a new node inside my Child 88d4c350-d2db-4765-b7da-0652b1278bd7 that is inside Child ETE, without overwriting the two tests? public void salvar(){ try { if…
-
0
votes2
answers171
viewsListeners from firebase database does not run and does not retrieve data, write - java server desktop
There are a few days I’m trying to understand what is happening with my code that I should write and read in Firebase Realtime Database, but without success and there is no apparent problem, error,…
java firebase-database desktop-application realtime-databaseasked 5 years, 5 months ago Wellington DC 1 -
0
votes1
answer24
viewsHow to reference userid and issue a notification in firebase
I’m having the following structure of the real time database: And I am trying to create a trigger so that whenever a message is added in user003 I send a notification through FCM my function is not…
-
0
votes1
answer100
viewsWrite user to firebase database
Good afternoon! I am facing a problem to record my user in my firebase database Altime. The scenario is as follows : I have my user creation code using the createUserWithEmailAndPassword method,…
-
0
votes2
answers121
viewsAndroid Studio Firebase Not Entering Data
Does anyone know how to input data into the Firebase Realtime database? My application does not give errors but does not insert anything in Firebase. Note: Database and application are connected and…
-
0
votes1
answer67
viewsI cannot display the Key element in the table
The previous problem was solved, but now I need to list also the key of my objects, because after I changed the method in my file . ts from snapshotChanges() for valueChanges(), I can no longer…
-
0
votes0
answers127
viewsReturning data from Firebase to a Listview
I’m making an app for a subject in college that consists of creating events, but I’m having trouble returning these events in a Listview. I saw some similar questions, copied many results but…
-
0
votes0
answers14
viewsRealtime Database duplicates records
Hello, I’m ranking a game using the Firebase database but every time I "push" the data Firebase makes two records. Code sample: The Handlegameover function is invoked when the Gameover variable is…
-
0
votes0
answers29
viewsHelp with Firebase and Android studio, collect data
Guys I have the following list in the database Opening each user of the list I have this information I need to take this information and play for a model class android studio, for this I’m using a…
android-studio firebase kotlin crud realtime-databaseasked 3 years, 10 months ago Felippe Pinheiro 11 -
-1
votes1
answer542
viewsError saving rules in firebase console
What errors can occur in the firebase Realtime database security rules console when defining my rules and what they are?
-
-1
votes1
answer297
views(Android studio) How to get a user id from their email in Realtime Database (Firebase)
I would like to know how I can get an id of my database in firebase by email. For example I have the email [email protected] and would like to get his id just by email. It is possible?
-
-1
votes1
answer123
viewsText search in the database (Firebase)
Good evening I need to customize a search to recover data from the Restaltime database. I currently use the following code to query an item in my database: query =…
-
-1
votes1
answer48
viewsError when making real time request with Xmlhttprequest
I have an error in my Real Time request via Xmlhttprequest, follow javascript code: function requisitar() { var base_url = window.location.origin; var xmlhttp; if (window.XMLHttpRequest) { xmlhttp =…
php javascript xmlhttprequest realtime-database real-timeasked 6 years, 10 months ago Alisson Maciel 141 -
-1
votes0
answers12
viewsHow to access values in a database in the Firebase database?
I am running the following code: var dadosCarro = firebase.database().ref('carro'); dadosCarro.on('value', (snapshot) => { var data = snapshot.val(); console.log(data) }); As an answer on the…
-
-1
votes0
answers22
viewsHow to enter Realtime Database data into my Flutter app
I’m a beginner in Flutter and I’m wondering how to work with the Realtime Database in a project I’m part of, I wanted to know how to take this data from the image of the database and put in the…
-
-2
votes1
answer16
viewsThe app closes when the user leaves the account
When the user leaves the account the application closes. The problem arose when I changed the rules of the Altime from that { "rules": { ".read": true, ".write": true } } for that reason { "rules":…
android android-studio firebase firebase-database realtime-databaseasked 3 years, 6 months ago izadora 1