firebase-realtime-database

iphone/ipad suddenly stops responding to firebase queries

让人想犯罪 __ 提交于 2020-01-26 03:50:14
问题 I am using firebase realtime database in my iOS application. I am using insert into database and find user depending on filter query in my application. It all works fine. Sometimes suddenly my ipad and iPhone stop responding to firebase queries. Many a times it happens that same application runs perfect on one device and doesn't work on other . Or same build when deleted and installed stops working on ipad/iphone. To troubleshoot this I generaly recreate my firebase authentication client id

Firebase: Retrieve nested data from unknown children

梦想与她 提交于 2020-01-26 03:23:05
问题 I have a firebase structure like this "broadcast": { "ghjghjFc1S3KO0y8yJwORdfgret": { //user ID "ryrtybgzMiI858YyGua": { //broadcast ID "a": "xxx", // broadcast Detail "b": "yyy", "c": false } "cbvbcvbMvAnSDqTb15vU": { //broadcast ID "a": "xxx", // broadcast Detail "b": "yyy", "c": true } } "3uqWZJRFc1S3KO0y8yJwORTMtWC2": { //user ID "jkhjkbgzMiI858YyGua": { //broadcast ID "a": "xxx", // broadcast Detail "b": "yyy", "c": false } "qwwerqweMvAnSDqTb15vU": { //broadcast ID "a": "xxx", //

Firebase/Angular: Messages not showing in HTML, but contain the message objects

[亡魂溺海] 提交于 2020-01-25 23:51:05
问题 Good day SO, I am trying to incorporate a basic firebase chat module into my system via angular js (I am honestly not proficient at all..) I am facing a problem whereby my items are not showing in my HTML element although my firebase messages are being retrieved from my firebase database. Here is my HTML code: <html lang="en" ng-app="chatApp"> ... <section id="content3" class="tab-content"> <div class="card mb-3"> <div class="card-header"> <i class="fa fa-comments-o"></i> Instant Chat

Reading/Retrieving Data From Firebase

∥☆過路亽.° 提交于 2020-01-25 22:05:25
问题 I am a beginner to Swift 3 (using iOS 8.3). I have been trying to figure out a way to separate the data but got no luck. Basically, I am able to extract the following data from Firebase: { Database = { Kelvin = { Institution = xxx; "Years of Experience" = "2.5"; location = London; }; Sophia = { Institution = xxxx; "Years of Experience" = 3; location = London; }; }; Users = { SOOlIFsjn3839jcmlBbVEnSRH3 = { email = "testing@gmail.com"; password = 1234567; }; }; } But now I want to separate the

Reading/Retrieving Data From Firebase

天涯浪子 提交于 2020-01-25 22:04:09
问题 I am a beginner to Swift 3 (using iOS 8.3). I have been trying to figure out a way to separate the data but got no luck. Basically, I am able to extract the following data from Firebase: { Database = { Kelvin = { Institution = xxx; "Years of Experience" = "2.5"; location = London; }; Sophia = { Institution = xxxx; "Years of Experience" = 3; location = London; }; }; Users = { SOOlIFsjn3839jcmlBbVEnSRH3 = { email = "testing@gmail.com"; password = 1234567; }; }; } But now I want to separate the

firebase transaction on lower node - Maximum call stack size exceeded

依然范特西╮ 提交于 2020-01-25 11:28:33
问题 after several Q&A about the transaction mechanism I'm trying to run a transaction on a lowel node here is my data: activeOffers -LKohyZ58cnzn0vCnt9p details direction: "city" seatsCount: 2 timeToGo: 5 uid: "-ABSIFJ0vCnt9p8387a" ---- offering user I'm trying to run the transaction on -LKohyZ58cnzn0vCnt9p and do the following: decrease the seatsCount by some requested value if there is enought seats add a subnode deal under ** -LKohyZ58cnzn0vCnt9p** with the requested value and the uid of the

How to properly update state with Firebase and useEffect()?

怎甘沉沦 提交于 2020-01-25 08:48:06
问题 I'm trying to fetch data from Firebase and then push it into my state. The goal is to create a mechanism that will do that every time data in Firebase changes. I used on() method along with useEffect() . Unfortunately, React is not re-rendering my component even when the state changes. (ignore direct reference, it's just for testing) const [tasks, setTasks] = useState([]); useEffect(() => { const fetchedTasks = []; const ref = props.firebase.db.ref('users/1zfRCHmD4MVjJj7L884LL4TMwAH3'); const

Is it possible to update a specific child's value without ID or key in firebase realtime database from android on button click?

梦想与她 提交于 2020-01-25 08:34:08
问题 this is my database and now I need to change the value of favorite from 0 to 1 but I don't have any specific id so how can I change specific child's value on click in android! [enter image description here][1] 回答1: In order to update a node, you must know the complete path to that node. Firebase does not support the concept of update queries , where you can pass a condition to an update statement. So if you don't know the complete path, you will have to take a two-step approach: Perform a

How do I write/update data to multiple child nodes via Firebase Cloud functions?

蹲街弑〆低调 提交于 2020-01-25 08:17:30
问题 I've got a database that looks like this: I want to reset the Patient_List and Current_Token children to 0 at a particular time (say 12 AM) automatically for all the users in the database. I went through the Firebase cloud function docs and these projects on gitHub: Deleting nodes and Delete unused user accounts using Cron. Both of the above examples update and change data based on a particular UID i.e update only particular nodes based on the UID passed. I would like to know if it is

How do I write/update data to multiple child nodes via Firebase Cloud functions?

ε祈祈猫儿з 提交于 2020-01-25 08:17:26
问题 I've got a database that looks like this: I want to reset the Patient_List and Current_Token children to 0 at a particular time (say 12 AM) automatically for all the users in the database. I went through the Firebase cloud function docs and these projects on gitHub: Deleting nodes and Delete unused user accounts using Cron. Both of the above examples update and change data based on a particular UID i.e update only particular nodes based on the UID passed. I would like to know if it is