Questions tagged [firebase-realtime-database]

Firebase Realtime Database is a cloud hosted, NoSQL, JSON database that provides offline caching and synchronization. Do NOT use this tag for questions about Cloud Firestore; instead use the [google-cloud-firestore] tag.

About Firebase Realtime Database

Firebase Realtime Database is a component of the Firebase suite of tools for cross-platform application development.

  • Intuitive and easy-to-use API
  • Remains responsive regardless of network latency or Internet connectivity so your Firebase app works offline. Data synchronizes when connectivity returns
  • Handles the complexity of realtime synchronization and provides flexible conflict resolution
  • Accessible directly from client SDKs, or from your server with the REST API

To learn more: Firebase Realtime Database for SQL Developers (video series)

Related tags

40037 questions
5
votes
1 answer

populate widget with Firebase

My app uses Firebase database and items are displayed correctly in a RecyclerView, but I want to display them also in a Widget. Since a widget is not an activity I run into all sort of problems using Firebase and ListView. Is there any way to…
5
votes
1 answer

How to implement Infinite Scrolling with the new Firebase (2016)?

QUESTION: How to implement efficient infinite scrolling in Firebase using javascript (and node.js) ? WHAT I CHECKED: Implementing Infinite Scrolling with Firebase? Problem: older firebase ^ Infinite scroll with AngularJs and Firebase CODE FROM:…
5
votes
5 answers

Firebase web - close connection to the realtime database

I'm using Firebase on the web, with Javascript. how can I close the connection to the realtime DB ? var config = {....}; firebase.initializeApp(config); // get the firebase DB reference var db = firebase.database().ref(); //doing…
Sahar Millis
  • 801
  • 2
  • 13
  • 21
5
votes
0 answers

Expected a Map while deserializing, but got a class java.lang.Long

I have been getting this error "Expected a Map while deserializing, but got a class java.lang.Long" while i use firebase database. I looked up some question the same problem on stackoverflow but didn't found a relevant solution. This is my POJO…
5
votes
1 answer

Scraping a webpage that is using a firebase database

DISCLAIMER: I'm just learning by doing, I have no bad intentions So, I would like to fetch the list of the applications listed on this website: http://roaringapps.com/apps I've done similar things in the past, but with simpler websites; this time…
Delta
  • 305
  • 3
  • 11
5
votes
3 answers

Get child name from Firebase?

If I have something like: child name: "value" How can I get the childname? I know its possible to get the value, but what about the other?
august alsina
  • 197
  • 2
  • 4
  • 15
5
votes
1 answer

How does .map / .subscribe on Angular2 work?

I'm trying to fill 3 variables (arrays) from Firebase with AngularFire2. DB structure is this: I'm stuck at how should I resolve Promise to map to fill those variables. Even easiest queries return nothing and also console.log doesn't show…
5
votes
1 answer

Adding Firebase Storage user upload limits

Is there any way to add Firebase 3 Storage security rules to limit how many files can single authenticated user upload? For example 100 files per user. Or somehow update Firebase Database file count, once someone uploaded file to Storage and later…
5
votes
2 answers

How to insert new child data in Firebase web app?

I am building a simple car database app. When a user adds a new car it creates the below JSON data with blank fields for the gallery: { "name": "Cars", "gallery": [{ "img": "http://", "title": "BMW" }, { "img":…
TheBlackBenzKid
  • 26,324
  • 41
  • 139
  • 209
5
votes
1 answer

iOS Firebase sort and limit - observer not called

This is my data model. project-foo -posts -KLs123412341234 key: "-KLs123412341234" message: "free cupcakes" time: 1467675688163 -... key: "..." message: "..." time: ... I'd like to only fetch posts in the last…
lf215
  • 1,185
  • 7
  • 41
  • 83
5
votes
1 answer

Query single Firebase object by key from a service

I'm using Angular CLI + Firebase + AngularFire2 have been trying to figure out how to query a single object from Firebase using the key. The basic flow would be to show a list of items, then clicking on an item would bring up the detail view for…
5
votes
1 answer

How to save data using Google sign-in

I've just implemented Google sign-in into my app using the course on Udacity, the developer docs, and a sample on GitHub as resources. The reason I chose to add sign-in into my app is so that the user could access their data on any devices where…
5
votes
5 answers

Firebase Retrieve Data - Could not cast value

First, I have checked these answers that do not help me : Swift JSON error, Could not cast value of type '__NSArrayM' (0x507b58) to 'NSDictionary' (0x507d74) Get data from Firebase When retrieving data from Firebase (3.x), I have an error that…
Antoine
  • 1,139
  • 9
  • 21
5
votes
1 answer

How to retrieve an object ID generated by Firebase?

I have the following object: root: { id1: { /* this is an autogenerated id by Firebase */ name1: "abc", name2: "xyz" }, id2: { name1: "abc", name2: "xyz" }, id3: { name1: "abc", name2: "xyz" }, } My code to…
RaulGM
  • 272
  • 2
  • 6
  • 21
5
votes
1 answer

Querying on Firebase Database with large data set is very very slow

I use Firebase database on my Android app. Normally, it works fine. But when the database is getting larger, the query performance is getting worse. I added about 5k record on database (under "elk" and "su" nodes), then I queried on database (on…