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
2 answers

Or operator '||' not working in firebase rules

I'm trying to change my firebase realtime database rules so that I can access it from both authenticated and unauthenticated users, I changed them to { "rules": { ".read": "auth == null", ".write": "auth != null" ||"auth==null" } } But…
5
votes
2 answers

How to set a listener on Firebase value event?

How to properly set up a value event listener with Firebase, using Node.js? I'm reading through Firebase's documents, and have successfully been able to update tables and rows on my Firebase database from both my Mac, and my Raspberry Pi running at…
5
votes
2 answers

How to paging query from Firebase using Android FirebaseUI

I have a chat project using Firebase Android SDK for the server. After 3 months, my application has many users and they chat with each other a lot. It takes a long time to load all of any chat list from Firebase. So now, I wonder that how to paging…
Trần Đức Tâm
  • 4,037
  • 3
  • 30
  • 58
5
votes
1 answer

Returning Promise after Firebase Query

Trying to make this as general so it can help other people. This question is more me struggling with the concepts of promises. So I have a function that returns the value of a boolean variable. My idea is to pull some data off of Firebase, and then…
Joe Caraccio
  • 1,899
  • 3
  • 24
  • 41
5
votes
3 answers

How to set our own Key when adding an object to Firebase via REST API

I have use following to add object to Firebase database. $url = "https://myfb.firebaseio.com/api/types/ty/packs.json"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,…
isuru
  • 3,385
  • 4
  • 27
  • 62
5
votes
1 answer

Firebase RecyclerView - Scroll on Animation When New Item Added

I am using the FirebaseRecyclerAdapter, documentation located here. Essentially, I want to scroll to the top of the RecyclerView as items are added to Firebase. It is tricky since I am not actually initialising the adapter with an ArrayList, or any…
5
votes
0 answers

Loading more items on user scroll with FirebaseIndexRecyclerAdapter

I'm using a FirebaseIndexRecyclerAdapter as described on https://github.com/firebase/FirebaseUI-Android/tree/master/database. But my list has many items and I want to only load a few items at first and then lazy load the rest when the user scrolls…
5
votes
2 answers

Vue.js: How to map a list of keys to Firebase objects?

I develop a small web-app based on Vue.js using Firebase to store and sync the data. I store items (e.g. with attributes title and subtitle) and lists with an attribute listitems, where an array of keys (those generated from Firebase) of items is…
andreas
  • 16,357
  • 12
  • 72
  • 76
5
votes
1 answer

Which is best practice for Firebase storage file structure?

I want to store user's profile picture on Firebase storage. My Firebase database structure is like below. users ㄴ KXkVAYQOV92tW27Wk0C ㄴ uid: "EAGZwcgvgAcgErO7rfm7IHI91fk2" ㄴ sex: "F" ㄴ age: 24 ㄴ KXkVR1rc2riXyGFl69E ㄴ…
5
votes
1 answer

Python-Firebase listener implementation

Is there a way where you can actively have a listener for a Firebase Database in Python? For instance, I have a node user in the database, I want to be able to actively listen for any changes that immediately happens for a user and immediately make…
Biplov
  • 1,136
  • 1
  • 20
  • 44
5
votes
1 answer

Denormalize Firebase Data For Tag Search

I have the following data structure and would like to return the "products" associated with a tag. is it possible to achieve this with the current data structure? If not, how should I structure the data, and what would the query look like to…
5
votes
1 answer

How to designate server location?

is it possible to designate Firebase server location (eg to Europe/US)? If so how? I noticed that this was possible for Google Cloud Platform, but couldn't find the equivalent for Firebase. Thank you very much.
bobmcpop
  • 153
  • 5
5
votes
0 answers

Firebase user privacy

I'm looking into using Firebase in an iOS app. Functionally it looks good, but is there any way to ensure that user data is kept private from the developer? I know that I can require authentication and ensure that users only see their own data in…
Tom Harrington
  • 69,312
  • 10
  • 146
  • 170
5
votes
1 answer

New FUITableViewDataSource - how to use? Swift 3

Just updated to the newer FirebaseUI Pod - a few things have changed but one of the big ones is the way that the FUI Table View works. I had it working well on an older version but am struggling with this below - and the lack of…
stktrc
  • 1,599
  • 18
  • 30
5
votes
1 answer

Querying below AutoID's in Firebase

Results - auto generated ID - auto generated ID value1: abc value2: def I want to be able to query where "value2" is equal to some specific value. I start with a reference: let ref =…
C6Silver
  • 3,127
  • 2
  • 21
  • 49