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
424
votes
5 answers

What's the difference between Cloud Firestore and the Firebase Realtime Database?

Google just released Cloud Firestore, their new Document Database for apps. I have been reading the documentation but I don't see a lot of differences between Firestore and Firebase DB. The main point is that Firestore uses documents and collections…
306
votes
8 answers

Query based on multiple where clauses in Firebase

{ "movies": { "movie1": { "genre": "comedy", "name": "As good as it gets", "lead": "Jack Nicholson" }, "movie2": { "genre": "Horror", "name": "The Shining", "lead": "Jack Nicholson" }, …
47d_
  • 3,527
  • 5
  • 20
  • 20
294
votes
6 answers

Firebase Storage How to store and Retrieve images

How to store and view images on firebase?
dogger
  • 2,965
  • 2
  • 14
  • 6
217
votes
9 answers

How to protect firebase Cloud Function HTTP endpoint to allow only Firebase authenticated users?

With the new firebase cloud function I've decided to move some of my HTTP endpoint to firebase. Everything works great... But i have the following issue. I have two endpoints build by HTTP Triggers (Cloud Functions) An API endpoint to create users…
183
votes
7 answers

Firebase cloud functions is very slow

We're working on an application that uses the new firebase cloud functions. What currently is happening is that a transaction is put in the queue node. And then the function removes that node and puts it in the correct node. This has been…
180
votes
8 answers

MongoDB vs Firebase

MongoDB vs Firebase What are some quantitative advantages of using Firebase over MongoDB? (not opinions) I know that Firebase is a cloud-based service with its own API, but I feel like Mongo may give me greater control in the long run.
itsclarke
  • 8,622
  • 6
  • 33
  • 50
162
votes
27 answers

Error: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp()

I have a firebase database linked up to two apps, one being an iOS app and another being a web app coded in node.js which is a basic algorithm that sets data to the database. When ever i am running the algorithm i am confronted with- Error: No…
159
votes
8 answers

Compilation failed to complete:Program type already present: com.google.android.gms.internal.measurement.zzabn

When compiling my project I get the following error message: Program type already present: com.google.android.gms.internal.measurement.zzabn Message{kind=ERROR, text=Program type already present: com.google.android.gms.internal.measurement.zzabn,…
155
votes
10 answers

Firebase Permission Denied

I'm relatively new to coding and am having trouble. I have this code to send data to firebase app.userid = app.user.uid var userRef = app.dataInfo.child(app.users); var useridRef = userRef.child(app.userid); useridRef.set({ locations: "", …
148
votes
17 answers

The pipe 'async' could not be found

I am trying to build a simple blog with Angular 2 and Firebase and I am having issues using async pipe in a component. I get the error in the console. zone.js:344Unhandled Promise rejection: Template parse errors: The pipe 'async' could not be…
134
votes
8 answers

Get users by name property using Firebase

I'm trying to create an application where I can get/set data in specific users accounts and I was tempted by Firebase. The problem I'm having is that I don't know how to target specific users data when my structure looks like this: online-b-cards …
Richard Bamford
  • 1,835
  • 3
  • 15
  • 19
121
votes
3 answers

What's the best way of structuring data on firebase?

I am new to firebase and I want to know what's the best way of structuring data on it. I have a simple example: There are Applicants and Applications on my project. 1 applicant can have several applications. How can I relate this 2 objects on…
hopper
  • 4,230
  • 8
  • 36
  • 49
104
votes
1 answer

What is the difference between `set` and `update` in the Firebase Realtime Database API?

As the title says, I can't get the differences between update and set. Also the docs can't help me, as the update example works exactly the same if I use set instead. The update example from the docs: function writeNewPost(uid, username, title,…
Bene
  • 1,041
  • 2
  • 8
  • 8
101
votes
12 answers

Firebase No properties to serialize found on class

I'm bloqued creating a Firebase Database. I'm trying to model a class. A very simple class: package com.glups.model; import com.google.firebase.database.IgnoreExtraProperties; @IgnoreExtraProperties public class AlumnoFB { private String…
EulerVen
  • 1,113
  • 2
  • 7
  • 5
101
votes
20 answers

How to check if a Firebase App is already initialized on Android

With the following, the first time it's called it works, but then fails on subsequent calls with "FirebaseApp name [DEFAULT] already exists!" public FirebaseDatabase conn(Context c) { FirebaseOptions options = new FirebaseOptions.Builder() …
Relm
  • 7,923
  • 18
  • 66
  • 113
1
2 3
99 100