GitLiveApp / firebase-kotlin-sdk

A Kotlin-first SDK for Firebase
https://gitliveapp.github.io/firebase-kotlin-sdk/
Apache License 2.0
1.17k stars 155 forks source link

Add DatabaseReference.get and addValueEventListener to Database for Android, iOS #557

Closed murfel closed 4 months ago

murfel commented 4 months ago
Library Class Member Platforms
Database DatabaseReference get, addValueEventListener Android, iOS

Is there any API to read from the Firebase Realtime Database? It seems that neither get(), nor addValueEventListener() are available, which are the two options presented in the official tutorial.

Any way to read from Firebase Realtime Database would work for me. Let me know if I'm missing something that already exists!

https://firebase.google.com/docs/database/android/read-and-write

Alternatively, could you point me to how to implement it myself in my application? Where do I put expected/actual? How hard would that be from just forwarding native implementations versus having to think?

nbransby commented 4 months ago

Hi @murfel see https://github.com/GitLiveApp/firebase-kotlin-sdk/issues/543

murfel commented 2 months ago

@nbransby sorry, my question was about Firebase Realtime Database, not Cloud Firestore realtime updates :) Confusing names!

Just about any way to read from Firebase Realtime Database would work for me!

nbransby commented 2 months ago

These links apply for rtdb: https://github.com/GitLiveApp/firebase-kotlin-sdk?tab=readme-ov-file#flows https://gitliveapp.github.io/firebase-kotlin-sdk/firebase-database/dev.gitlive.firebase.database/-query/value-events.html