firebase-realtime-database

How to pipeline several request to Firebase in order to fetch data from multiple nodes at the same time

风流意气都作罢 提交于 2020-01-13 10:58:29
问题 I need to retrieve data from 4 nodes in my Firebase Database. By design, in firebase, this can only be done by firing 4 queries. In my case, those 4 queries are independent as I already know the path of each: I could fire them all at the same time. I have learned from Frank van Puffelen that Firebase is able to pipeline several queries inside the same connection (see here). This is very useful as it avoids to trigger sequentially n queries and to loose round-trip time. In Javascript, we can

Firebase two-way relationships / Retrieving data

核能气质少年 提交于 2020-01-13 07:25:12
问题 I would like some explanations about data retrieving in firebase. I'm not an expert in NoSql data structure and something is missing in my mind. It's not natural for me. However, I think i've understood the basics of Two-way relationships in this kind of structure. Here is my data structure : { // Two-way relationships between accounts & logements "accounts" : { "uniqueId1" : { "nom" : 'My name 1', "email" : 'My email 1', "logements" : { uniqueIdLogement1 : true, // do I have to list

android firebase : NOT EQUAL query in Firebase Database

拜拜、爱过 提交于 2020-01-13 07:24:09
问题 I have users object as below: { "deviceTokens" : { "SgJd7o1hK7YbJnygnYWvaz4qkr42" : { "c-sfcTB3iEA:APA91bEvuzhX1nlrhoxVmR69lvwu0H1zyRjOXd5b14LngObuj8WeHkmlel6AOyrU7B2alBO1vW0pIO4gXGurvz5llCloyYpQv7vCq0_3fVEhmrIGfJ2S13TiXqVLJgWUCs95_AYZlysj" : true, "cnQdyuxBgz0:APA91bFZTPEFrl1Vf9Nw9ZvdtNsW1ll3YYq8WIwT799NVTp6S281v56UVJ3lo0kDK_rFZfoHuarX9Qb8NL8TJXi9A_jH4RhbDp3ecbW-tHdrYR06PwYdSiMfRjIxJOuPtHuqy0TNOw4K" : true, "d3D81crwy0E:APA91bEoAeWiOwm73bt2DvNNdv

How to save data to Firebase using Java (Desktop)

被刻印的时光 ゝ 提交于 2020-01-13 07:11:50
问题 I'm trying to save data to Firebase using a desktop application written in Java. However, for some reason it doesn't work, I've been folowing the documentation provided here: https://firebase.google.com/docs/database/admin/save-data. Couldn't find any video tutorials on the matter, all videos are web or mobile related. Basically I want to create an object called Venda that has 3 attributes (ID, data, valor) and then save it on Firebase. Thank you! Here is the main method: public class Main {

How to save data to Firebase using Java (Desktop)

為{幸葍}努か 提交于 2020-01-13 07:10:10
问题 I'm trying to save data to Firebase using a desktop application written in Java. However, for some reason it doesn't work, I've been folowing the documentation provided here: https://firebase.google.com/docs/database/admin/save-data. Couldn't find any video tutorials on the matter, all videos are web or mobile related. Basically I want to create an object called Venda that has 3 attributes (ID, data, valor) and then save it on Firebase. Thank you! Here is the main method: public class Main {

Firebase retrieve image from URL save with Firebase database

北城余情 提交于 2020-01-13 07:02:06
问题 I have saved an image to the Firebase storage and also saved the imageURL to Firebase database, but how can I get the image back by the URL saved in firebase database? Here is how I save it func imagePickerController(picker: UIImagePickerController, didFinishPickingImage image: UIImage, editingInfo: [String : AnyObject]?) { userPhoto.image = image dismissViewControllerAnimated(true, completion: nil) var data = NSData() data = UIImageJPEGRepresentation(userPhoto.image!, 0.8)! // set upload

Read data from firebase and populate TableViewCell

雨燕双飞 提交于 2020-01-13 06:08:10
问题 Hello I have a tableviewcell where i can populate it with custom data from my pc, but i can't use my firebase data on the cell that i have made. I want to fill my cell with String and Int, not only Strings. My code is: PlacesTableViewController Class import UIKit import FirebaseDatabase class PlacesTableViewController: UITableViewController { //MARK: Properties @IBOutlet weak var placesTableView: UITableView! //database reference var dbRef:FIRDatabaseReference? var places = [Places]() var

Deleting a node from firebase database using firebase cloud functions

只愿长相守 提交于 2020-01-13 02:48:12
问题 I'm trying to make a firebase cloud function to delete a node from Firebase Database. The log messages show that the function executed "ok" but it doesn't seem to remove any element from the database. I wrote the function taking help from the accepted answer in How to delete data in Firebase? Here is the snippet of the code const functions = require('firebase-functions'); const admin = require('firebase-admin'); admin.initializeApp(functions.config().firebase); //path is defined as the value

Undefined symbols for architecture armv7: “_OBJC_CLASS_$_FIRApp”

我怕爱的太早我们不能终老 提交于 2020-01-12 02:30:52
问题 I am integrating Firebase in my app according to the instructions and added [FIRApp configure]; in the code however, while compiling the app I am getting the following error: Undefined symbols for architecture armv7: "_OBJC_CLASS_$_FIRApp", referenced from: objc-class-ref in AppDelegate.o ld: symbol(s) not found for architecture armv7 回答1: Did CocoaPods write any warnings due to pods installation? I fixed a similar issue by setting OTHER_LDFLAGS build settings to $(inherited) flag. 回答2: s

Implement a read receipt feature in Firebase group messaging app

為{幸葍}努か 提交于 2020-01-11 19:52:28
问题 I'd like to implement a 'Seen' feature in my Firebase group messaging app. Can you kindly advise the best and most efficient approach to take (working code will be appreciated)? For example, the app would show " Seen by 6 " or " Seen by 15 " on a group message. Here's my project: https://github.com/firebase/friendlychat/tree/master/android Here's the MainActivity: https://github.com/firebase/friendlychat/blob/master/android/app/src/main/java/com/google/firebase/codelab/friendlychat