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

How to get size of an element/list in Firebase without get it all?

I need to measure the size/length of an element or list in Firebase but I don't need the real content. Something like firebase.database().ref("users/").once("length" || "size").then(callback) ps Javascript SDK
Rodolfo Paranhos
  • 793
  • 2
  • 7
  • 18
28
votes
2 answers

Firebase: setting additional user properties

I'd like to add a property to a Firebase user object. The user documentation says that I can only store additional properties using the Firebase real time database. I am unsure on how this can works in practice. What does the following mean in…
28
votes
2 answers

Firebase and indexing/search

I am considering using Firebase for an application that should people to use full-text search over a collection of a few thousand objects. I like the idea of delivering a client-only application (not having to worry about hosting the data), but I am…
Gene Golovchinsky
  • 6,101
  • 7
  • 53
  • 81
27
votes
6 answers

FirebaseInstanceId does not exist anymore

I just did an upgrade to all my Firebase dependencies and I have an issue, FirebaseInstanceId is not recognized anymore. I have used it to get the token id like this: String tokenId = FirebaseInstanceId.getInstance().getToken(); This is the…
Joan P.
  • 2,368
  • 6
  • 30
  • 63
27
votes
1 answer

Generate private key Firebase Admin SDK

I'm very new to Firebase, and I need a private key to access the Firebase Admin SDK for my backend. Actually, my company has been using Firebase for a long time, but no one knows where the private key is or if it has been generated. Here are my…
27
votes
3 answers

Firebase realtime database high download usage

We are using firebase realtime database to save scores for each level for users that are connected with facebook. We are still testing this feature and everything works fine, but the download usage is really really high. Every time that user opens…
27
votes
5 answers

How to retain RecyclerView's position after Orientation change, while using Firebase & ChildEventListener?

I'm working on a simple APOD app that implements: RecyclerView CardView Firebase Picasso The app grabs images and text from Firebase and Firebase Storage, displays them in a CardView, and sets an OnClickListener to each View. When the user clicks…
Drew Szurko
  • 1,601
  • 1
  • 16
  • 32
27
votes
5 answers

Chat App using Firebase: Get notification when new message received - Android

I am developing a chat app using Firebase Realtime Database. I have been able to send and receive messages properly. Now, I want to implement notification whenever new message is received. For that, I have created a Service which listens to database…
27
votes
3 answers

What is firebase and how to use it in Android?

I want to create an android app, where I, as an author, upload my college notes and anyone can download it. I read that firebase can help me with this. Can anyone please explain what is firebase and how to use it with my reference? Thank you!
26
votes
1 answer

users does not define no argument constructor

i kept getting this error "users does not define a no-argument constructor. If you are using ProGuard, make sure these constructors are not stripped." Tried everything, no idea why it happen. public void retrievingUserInfo(){ …
Old G
  • 366
  • 1
  • 4
  • 9
26
votes
3 answers

How to save the current date/time when I add new value to Firebase Realtime Database

I want to save the current date/time in specific field when I add new value to Firebase Realtime Database via control panel. How can I achieve that? Please help me.
Leenah
  • 850
  • 3
  • 15
  • 36
26
votes
2 answers

Firebase observeSingleEvent stays in memory

My app uses firebase's observeSingleEventOfType quite a fair bit and I came to realise that my app's memory increase over time. I have commented out all my code except a test button that calls the following function. func loadPostsTest() { …
user172902
  • 3,541
  • 9
  • 32
  • 75
26
votes
10 answers

How to delete a Firebase user from Android App?

I'm trying to code a Delete User method in my Android App, but I have some issues each time I execute it. This method will be executed when a user pushes the Delete account button on an Activity. My apps works with FirebaseUI Auth. Here is the…
26
votes
2 answers

How to connect MySql database with Firebase?

How to connect MySql database with Firebase. This is for real time data updates and show it on browser. Already created Firebase account and got config code. Now I want connect my existing MySql based database with Firebase. Please Help Thanks
Nithin
  • 381
  • 1
  • 3
  • 7
26
votes
6 answers

When making a POJO in Firebase, can you use ServerValue.TIMESTAMP?

When you're making a Plain Old Java Object that's meant to be serialized from and deserialized to Firebase, is there a way to use the ServerValue.TIMESTAMP value? For example, let's say I want to have an object where one of the properties is the…
Lyla
  • 2,767
  • 1
  • 21
  • 23