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
35
votes
6 answers

How do I lock down Firebase Database to any user from a specific (email) domain?

I have a small, personal Firebase webapp that uses Firebase Database. I want to secure (lock down) this app to any user from a single, specific domain. I want to authenticate with Google. I'm not clear how to configure the rules to say "only users…
34
votes
8 answers

Firebase : Read-only & non-realtime mode activated to improve browser performance

Read-only & non-realtime mode activated to improve browser performance Message pops up in my project and I'm unable to delete the nodes as well Also I read this https://groups.google.com/forum/#!topic/firebase-talk/qLxZCI8i47s Which states : If…
34
votes
12 answers

Uncaught ReferenceError: Firebase is not defined

I am trying to follow the tutorial on designing a database in firebase, but I am getting the following error in the JavaScript console: Uncaught ReferenceError: Firebase is not defined Here is the link to the tutorial, and the code snippet that I…
Eddev
  • 890
  • 1
  • 10
  • 21
34
votes
2 answers

How do you prevent duplicate user properties in Firebase?

I'm Using FirebaseSimpleLogin to create users and handle authentication. When I try and create a new user with simple login via the $createUser() method, firebase won't create the user if the email address has already been used. However, I am also…
33
votes
2 answers

How to get Firebase working with Java backend

First of all I'd like to apologize if this question is to abstract or unsuitable for this site. I really don't know where else to ask. Currently I have developed apps in iOS and Android. They keep all their state in firebase, so everything is…
why_vincent
  • 2,172
  • 9
  • 33
  • 49
32
votes
5 answers

Firebase child_added for new items only

I am using Firebase and Node with Redux. I am loading all objects from a key as follows. firebaseDb.child('invites').on('child_added', snapshot => { }) The idea behind this method is that we get a payload from the database and only use one action…
Lee
  • 5,816
  • 6
  • 45
  • 61
32
votes
17 answers

Firebase login failed

I'm having troubles trying to migrate to new firebase console. I'm doing exactly what is on this link: https://firebase.google.com/support/guides/firebase-web#import_your_project_to_the_firebase_console_numbered And this is what happened in the step…
Jorgeley
  • 482
  • 1
  • 6
  • 12
32
votes
3 answers

How do you include a username when storing email and password using Firebase (BaaS) in an Android app?

The Firebase createUser() method takes an email and password field, but what if I want to also allow the user a custom username similar to Snapchat, Instagram, StackOverflow etc? Is there any way to modify the existing method to accept that field as…
32
votes
2 answers

Firebase persistence, clear Firebase cache

My app uses Firebase to sync and restore data. I use the setValue:withCompletionBlock: method to insert, update and delete Firebase objects. This method is called whenever there is a CoreData save, thus syncing all my local changes to Firebase -…
31
votes
2 answers

Is a Firebase UID always 28 characters?

I am creating security rules for my Firebase project and wanted to add UIDstring.length == 28 to my database rules. All of my users UIDs are 28 characters, but I wanted to check if they can be any longer or shorter? Thanks
31
votes
2 answers

How to assign an initial value to Subject RxJS observable?

I'm developing an Angular 2 app, I need make changeable the order of my columns in a List, clicking on the title (as data-table works) and I get an idea from Angularfire 2 documentation examples, here is my code: (grupos.component.ts) import {…
31
votes
8 answers

Android Firebase Database Error: Permission denied

I am working on an android project that requires user email and pwd authentication. The details are stored in the firebase database.The problem occurs whenever I try logging in again with the email and password. In my logcat the error message is:…
31
votes
5 answers

Class java.util.Map has generic type parameters, please use GenericTypeIndicator instead

I am using firebase to retrieve data from database n use Map map = dataSnapshot.getValue(Map.class); to get values, but it shows error E/AndroidRuntime: FATAL EXCEPTION: main …
Sahaj Rana
  • 1,993
  • 4
  • 25
  • 42
31
votes
2 answers

Firebase Permission denied Error

I am Very beginner to firebase and trying to get value from my database. but it showing me same error every time. W/SyncTree: Listen at /child failed: FirebaseError: Permission denied My firebase rules { "Condition" : "sunny", "child" :…
30
votes
3 answers

Initializing firebase CLI Features in an existing Firebase project directory

I am trying to add features "Hosting" into a Firebase project file which has already installed Functions. So I want to know if I can do this with Firebase Init. or this will erase my existing firebase function. Is there anyway that I can do this…