Questions tagged as 'realtime-database'

2
answers

".read" firebase security rules

I've created the following security framework in Realtime Database: { "rules": { "receita": { "$chave": { ".write": "auth.uid === newData.child('usuario').val()", ".read": "auth.uid === data.child('usuario').val()...
asked by 31.03.2018 / 20:16
1
answer

Broadcasting with Laravel

I'm creating a chat and for this I need to do a real-time mode so I do not have to be pinging several times on the server SignalR that does this service, I'm working with Laravel-PHP and read the documentation Broadcasting , but I...
asked by 17.07.2018 / 19:43
1
answer

Firebase getDisplayName () returns empty

I have the following code that should return the user data logged in by Firebase, it returns the user with no problem, ID and Email, but the value of the name returns empty or null. As if the unnamed user was registered, but the user name usuall...
asked by 19.11.2018 / 21:25
2
answers

Real-Time How it works. Well I'm having problems with my tests Laravel 5.4

What do I need? I need when a user in the frontend sends a message to the system and the dashboard backend receives a real-time notification that the message has just been created. I'm doing this. In my controller in the store () method of the c...
asked by 12.10.2017 / 02:25
1
answer

Register user with photo on firebase

Good evening!   Personally, I am making a user registry in my app and would like in addition to the personal data that I will save in the realtime database I would like to save the profile photo and a cover photo (or it can be just the profile p...
asked by 02.09.2017 / 01:20
1
answer

ref () or child () when reading data firebase web

What is the difference between ref() and child() in firebase? When should I use one or the other? Are there any performance differences?     
asked by 03.03.2018 / 02:06
1
answer

Sort firebase list

Currently I use this function to read the data from the firebase database: function ler() { database.ref(referencia_database).orderByChild('nome').once('value').then(function(snapshot) { snapshot.forEach(function(childSnapshot) {...
asked by 03.03.2018 / 00:00
1
answer

Save user information in Firebase Realtime Database

According to the documentation says, you should not use getUid() of user to authenticate users on the backend server; instead, use getToken() . However, I see a lot of code out there using this attribute to save things specific to...
asked by 19.03.2017 / 02:58
0
answers

Vector burning error on firebase - Ionic 3

I'm developing an app, and I need to write a vector in firebase (RealTime). Code: irParaCarrinho(element) { element = this.pedido.carrinho; if (this.vetCarrinho.indexOf(element) === -1) { this.vetCarrinho.push(element); So far...
asked by 21.11.2018 / 17:11
0
answers

Function to return only the requests to the logged-in user in question

I have following code to save the requests: save(pedido: any) { var userId = firebase.auth().currentUser.uid return new Promise((resolve, reject) => { if (pedido.key) { this.db.list("pedidos") .update(pedido.key, { name: pedido....
asked by 21.09.2018 / 13:24