firebase-realtime-database

firebase grab by orderByChild then update results key

我与影子孤独终老i 提交于 2020-12-27 05:29:21
问题 So i have this query and currently collects all the data with materialName equals to gold. I wanted change all to false. // materialName = "gold" for example database.ref('/app/posts').orderByChild('material').startAt(materialName).endAt(materialName).once('value', function (snapshot) { const materials = snapshot.val(); }) I have tried something like this: database.ref('/app/posts').orderByChild('material').startAt(materialName).endAt(materialName).once('value', function (snapshot) { database

firebase grab by orderByChild then update results key

烂漫一生 提交于 2020-12-27 05:25:59
问题 So i have this query and currently collects all the data with materialName equals to gold. I wanted change all to false. // materialName = "gold" for example database.ref('/app/posts').orderByChild('material').startAt(materialName).endAt(materialName).once('value', function (snapshot) { const materials = snapshot.val(); }) I have tried something like this: database.ref('/app/posts').orderByChild('material').startAt(materialName).endAt(materialName).once('value', function (snapshot) { database

Firebase : I get in trouble when I sign in with Google

若如初见. 提交于 2020-12-26 11:14:30
问题 I have this mistake when I log in with Google com.google.firebase.database.DatabaseException: Failed to get FirebaseDatabase instance: Specify DatabaseURL within FirebaseApp or from your getInstance() call. at com.google.firebase.database.FirebaseDatabase.getInstance(com.google.firebase:firebase-database@@16.0.5:114) at com.google.firebase.database.FirebaseDatabase.getInstance(com.google.firebase:firebase-database@@16.0.5:71) at pl.cyfrogen.budget.ui.signin.SignInActivity.updateUI

Firebase : I get in trouble when I sign in with Google

亡梦爱人 提交于 2020-12-26 11:11:07
问题 I have this mistake when I log in with Google com.google.firebase.database.DatabaseException: Failed to get FirebaseDatabase instance: Specify DatabaseURL within FirebaseApp or from your getInstance() call. at com.google.firebase.database.FirebaseDatabase.getInstance(com.google.firebase:firebase-database@@16.0.5:114) at com.google.firebase.database.FirebaseDatabase.getInstance(com.google.firebase:firebase-database@@16.0.5:71) at pl.cyfrogen.budget.ui.signin.SignInActivity.updateUI

Firebase : I get in trouble when I sign in with Google

匆匆过客 提交于 2020-12-26 11:09:09
问题 I have this mistake when I log in with Google com.google.firebase.database.DatabaseException: Failed to get FirebaseDatabase instance: Specify DatabaseURL within FirebaseApp or from your getInstance() call. at com.google.firebase.database.FirebaseDatabase.getInstance(com.google.firebase:firebase-database@@16.0.5:114) at com.google.firebase.database.FirebaseDatabase.getInstance(com.google.firebase:firebase-database@@16.0.5:71) at pl.cyfrogen.budget.ui.signin.SignInActivity.updateUI

Running node index.js does nothing

北战南征 提交于 2020-12-26 08:08:28
问题 I am trying to follow a simple tutorial on setting up algolia which one can find here. https://www.algolia.com/doc/tutorials/indexing/3rd-party-service/firebase-algolia/ I literally copy the code word for word into an index.js file. When I run node index.js in my terminal I get this No success message. Nothing in algolia. Nothing. I have included my code is there anything that anyone noties that I may have done wrong. This has been frustrating me for hours. const algoliasearch = require(

What rules to use on Firebase-RealtimeDatabase to let users register and login?

 ̄綄美尐妖づ 提交于 2020-12-25 18:16:20
问题 In order to let Android users register and login through my app I have set the .read and .write as true . My problem is anyone is able to access the users JSON file since it's public . How can I restrict the access to the database only through the app and Firebase console? Below are the rules: { "rules": { ".read": true, ".write": true } } 回答1: Using the following rules: { "rules": { ".read": "auth != null", ".write": "auth != null" } } You'll give read and write access only to authenticated

What rules to use on Firebase-RealtimeDatabase to let users register and login?

巧了我就是萌 提交于 2020-12-25 18:12:19
问题 In order to let Android users register and login through my app I have set the .read and .write as true . My problem is anyone is able to access the users JSON file since it's public . How can I restrict the access to the database only through the app and Firebase console? Below are the rules: { "rules": { ".read": true, ".write": true } } 回答1: Using the following rules: { "rules": { ".read": "auth != null", ".write": "auth != null" } } You'll give read and write access only to authenticated

What rules to use on Firebase-RealtimeDatabase to let users register and login?

左心房为你撑大大i 提交于 2020-12-25 18:11:44
问题 In order to let Android users register and login through my app I have set the .read and .write as true . My problem is anyone is able to access the users JSON file since it's public . How can I restrict the access to the database only through the app and Firebase console? Below are the rules: { "rules": { ".read": true, ".write": true } } 回答1: Using the following rules: { "rules": { ".read": "auth != null", ".write": "auth != null" } } You'll give read and write access only to authenticated

Can Swift 4's JSONDecoder be used with Firebase Realtime Database?

徘徊边缘 提交于 2020-12-24 06:49:28
问题 I am trying to decode data from a Firebase DataSnapshot so that it can be decoded using JSONDecoder. I can decode this data fine when I use a URL to access it with a network request (obtaining a Data object). However, I want to use the Firebase API to directly obtain the data, using observeSingleEvent as described on this page. But, when I do this, I cannot seem to convert the result into a Data object, which I need to use JSONDecoder. Is it possible to do the new style of JSON decoding with