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
4
votes
0 answers

Firebase App Check for Web App not working, did follow instructions, where am I going wrong?

So I followed the instrucutions on adding Firebase App Check as listed here. I created a reCAPTCHA V3 project and copied the "Use this site key in the HTML code your site serves to users." in my firebase Init and then copied the "Use this secret key…
4
votes
0 answers

Firebase Realtime IOS can't read data permission denied

This is the error in the console Unable to get latest value for query FQuerySpec (path: /Oeuvres/13, params: { }), client offline with no active listeners and no matching disk cache entries [Firebase/Database][I-RDB082010] Got data message: { b = …
4
votes
1 answer

Reading data from Firebase RTDB using Flutter has different behavior on Android and iOS

I'm experiencing a behavior where the following call behaves differently when executed for iOS and for Android. In Android, the following .get() call returns the expected snapshot from the chatRoomID path. However, in iOS, .get() ends up returning a…
4
votes
1 answer

"error" : "Data to write exceeds the maximum size that can be modified with a single request." Firebase

I'm trying to delete a node composed of many children in Firebase realtime-database. I created this little function which is working but not when there are too many children : def delete_node_firebase(node): node_val =…
Julien J
  • 2,826
  • 2
  • 25
  • 28
4
votes
1 answer

Uncaught Error: Service database is not available firebase javascript

I am trying to access my realtime database in firebase but it shows me this error Uncaught Error: Service database is not available. I have searched for what this could posabbly mean but I couldn't find anything useful or a solution. Here is my…
Jerry Lin
  • 115
  • 1
  • 9
4
votes
1 answer

How to add variables from a firebase snapshot

I know this question has been ask several times but none of the solutions work for me. here is my snap shot Snap (CaseExtend) { NYxdSlq8yOgQd3phssRlD = { CaseMinute = { WMKuImjuH0qPIGJhHHJKv = { …
4
votes
1 answer

How to increment values in Firebase Realtime Database (v9)

I note that there's instructions on how to increment values for realtime database in Javascript v8: === Added ServerValue.increment() to support atomic field value increments without transactions. API Docs here Usage example: firebase.database() …
Lloyd Rajoo
  • 137
  • 2
  • 13
4
votes
1 answer

Flutter Firebase: Bad state: Snapshot has neither data nor error

i am trying to get from the table Products, the specific products that the P_ID is added to cart now the code beneath work well but only retrieve one element final Stream cart = FirebaseFirestore.instance …
4
votes
2 answers

How to run a Firebase Transaction using Kotlin Coroutines?

I'm trying to run a Firebase Transaction under a suspended function in Kotlin and i see no documentation about it. I'm using implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-play-services:1.5.2' for coroutines with firebase (eg:…
4
votes
1 answer

Cannot read properties of undefined (reading 'path') Firebase ref function conflict

Error: Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'path') according to my testing, import { getStorage, ref, uploadBytesResumable, getDownloadURL } from…
4
votes
1 answer

Correct way to unsubscribe on Firebase 9.0.0

On previous versions, I would do: // Declaring db reference let ref = firebase.database().ref('features') // Creating the listener let listener = ref.on('value', snapshot => { if(snapshot.val()){ // Reading data …
Erik Martín Jordán
  • 4,332
  • 3
  • 26
  • 36
4
votes
2 answers

how to count number of keys in firebase real time database

How do I count number of keys, with the help of firebase functions, in above case there are 3. I am using firebase real time database
Roy Sougat
  • 83
  • 7
4
votes
1 answer

Firebase - Vue database integration not working

I am trying integrating Firebase with Vue 4 application is currently getting the following error. Uncaught TypeError: db__WEBPACK_IMPORTED_MODULE_1_.default.database is not a function I am using "firebase": "^9.0.0" "vue": "^3.0.0" import {…
V5NEXT
  • 1,907
  • 4
  • 19
  • 38
4
votes
1 answer

Using equalTo() function in Firebase Database JavaScript v9

I am trying to use the equalTo function in the Firebase Database JavaScript v9 SDK. It's not very well documented like V8 is so can't figure out how to do what I want to do. I want to filter results by the type field. My parent field is request-log…
4
votes
1 answer

How to fix import { Plugins } from '@capacitor/core'; Depricated Fix

Does anyone know what is the fix for the decricated import of ionic Plugins? I'm following a tutorial and I cant proceed until I fix it.. import { Plugins } from '@capacitor/core'; import { Storage} = Plugins; Many thanks
1 2 3
99
100