All Questions
Tagged with kotlin firebase-realtime-database
1,044
questions
1
vote
2
answers
56
views
App Crash com.google.gms:google-services:4.3.15
I encountered below problem.
Problem:
App Crash com.google.gms:google-services:4.3.15
FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx.yyy/com.xxx.yyy....
0
votes
0
answers
32
views
Firebase realtime database always return null list while using viewmodel
Firebase realtime database always return null list while using viewmodel/livedata. But if I use the same code in Fragment itself it works.
this is my viewmodel
package com.example.taxinfo.viewmodel
...
0
votes
1
answer
48
views
Cannot display Data from my layout viewBinding
I am new to Android Studio. I have been following a tutorial on how to create a Kotlin-based MVVM app with Firebase. I created a data class called ServiceOrder that contains all the necessary data ...
0
votes
1
answer
37
views
Firebase RecyclerView not Displaying Retrieved Data in Fragment Despite Successful Fetch and Adapter Setup In kotlin Xml Android
I'm unable to display data retrieved from the Firebase Realtime Database in a RecyclerView within my Android application.
Despite successfully fetching the data (as confirmed by logging), the ...
0
votes
1
answer
61
views
Firebase Caching in Jetpack Compose
@HiltAndroidApp
class MelonFeedApp: Application() {
override fun onCreate() {
super.onCreate()
FirebaseDatabase.getInstance().setPersistenceEnabled(true)
}
}
MelonFeedApp.kt
...
2
votes
1
answer
59
views
How to create a list inside an object by userID in Kotlin for Firebase Realtime Database?
I'm working on an Android project using Kotlin and Firebase Realtime Database. I want to structure my data in such a way that each user has a list of conversations with other users. Each conversation ...
1
vote
1
answer
58
views
DataSnapshot.getValue() undocumented strange behaviour
What's going on here?
assertEquals(mapOf("161" to "a", "163" to "b"), Firebase.database.getReference("case").get().await().value)
assertEquals(mapOf(&...
0
votes
0
answers
20
views
Android - Data fetched from Firebase is not added to the list
I have a fragment in Kotlin and I am trying to get data from Firebase. I already get data from Firebase but the code does not works when it comes to add datas to "myPetsList" list. Here is ...
0
votes
1
answer
37
views
Firebase RTDB: How do multiple queries handled under the hood? [duplicate]
My case is the following. I make two calls like ref.get() at the same time. The first call asks for a bit larger piece of data (5MB), than the second one (100KB). How Firebase SDK for Android will ...
0
votes
2
answers
63
views
how to retrive data from firebase realtime database as a list
I am working on an Android project and have a button that inserts data into the Realtime Database child and it's working fine. but now i need to get that data as a list and append it to listof to be ...
0
votes
0
answers
18
views
android studio project with fire base error
I have an Android application where I initially populated a RecyclerView with dummy data in the MainActivity. Later, I integrated Firebase Database to fetch real-time data for populating the ...
0
votes
0
answers
44
views
Why Firebase Realtime database not working?
I am trying to add a realtime database but it is not working.
private lateinit var databaseReference: DatabaseReference
After this, in oncreate, I am calling a function call buyer().
private fun ...
0
votes
2
answers
78
views
Firebase RTDB: Offline cache behaviour issue
The issue is about of RTDB (when offline) still return data or just make no callback when I making a request to non-synced node. Please look at details below.
I set offline mode on for my DB: db....
0
votes
0
answers
37
views
Firebase RTDB: Filtering by timestamp issue
Querying in Firebase RTDB looks simple, but I have a problem. Database structure see below. I need filter trips by finishTime. For all my queries I'm gettin all nodes inside trips/* with no filter ...
0
votes
0
answers
71
views
How can I stop updating the RecyclerView in the fragment?
I am currently creating an app in Android Studio via Kotlin, where several fragments (BottomNavigationBar) are bound in the MainActivity. In one of the fragments is a RecyclerView, which gets the ...