All Questions
32 questions
0
votes
0
answers
34
views
Jetpack Compose UI Not Updating Immediately After Backend Operations or Firebase Database Changes
I am working on an Android app using Jetpack Compose, and I have encountered an issue where the UI does not update immediately after successful backend operations or Firebase Database changes. The ...
1
vote
2
answers
36
views
Set activity for Firebase authentication in MVVM [closed]
I want to use Firebase to authenticate user via phone in an Android app. The doc says to do this
val options = PhoneAuthOptions.newBuilder(auth)
.setPhoneNumber(phoneNumber) // Phone number to ...
0
votes
1
answer
18
views
userMethod.value is taking null value even though inside if log is logging correct value
override fun detectMethod(): MutableLiveData<String> {
val userMethod = MutableLiveData<String>()
mAuth.addAuthStateListener {
val currentUser = mAuth....
0
votes
3
answers
61
views
I can't see my recycler view in android studio
I m doing a instagram clone in android studio with kotlin. I am using firebase. The problem is I can't see comment recycler view in post detail screen. I checked my commentList it is true. So my ...
0
votes
1
answer
145
views
Unresolved reference getInstance
I'm trying to create an app that allows authentication via firebase according to this tutorial.Unfortunately, when writing the code for the AppModule.kt file, there is a problem with specifying the ...
0
votes
1
answer
102
views
Kotlin Firebase Realtime Database correct return value for setValue() in MVVM
What would be the correct return value of my setMyBirthday function in the HomeRepository class for the code to work? Void doesn't seem to be the right return value.
Fragment:
private fun ...
0
votes
1
answer
203
views
Kotlin MVVM Firestore
How i can remove this carsListener?
Otherwise I get an infinite download
override fun getUserData(userId: String): Flow<Response<User>> = callbackFlow {
Response.Loading
...
0
votes
2
answers
163
views
How to make my result from firebase database continuously update at realtime?
I've been building an app that allows the user to retrieve and delete some of his own itens registered on Firebase Database, that is my function that allows that (Thanks, Zeeshan):
override suspend ...
0
votes
2
answers
1k
views
is it possible collect multiple flows in one
what I want to do is get network data by firebase AddSnapshotListener, store it in room database and get data from room database
so what I done is down here...
// in dataSource
fun getNetworkData(id : ...
0
votes
0
answers
150
views
Recycler View items Not showing from firebase realtime database in kotlin
I am trying to show this datas to my recycler view but they are not showed in the recycler view.
My Codes are below
fragment_group_notice.xml
<?xml version="1.0" encoding="utf-8&...
0
votes
0
answers
76
views
Type mismatch: inferred type is Model but List<Model> was expectedd
I'm using the room library in a Mvvm architecture application.
There is a main piece and a detail piece.
I go to the detail fragment with id. So I pull the ID from the room. But I will use ...
1
vote
0
answers
81
views
Kotlin MVVM firestore callbackFlow: Stuck with IMPLICIT TYPE CASTING to ANY?
I am new to mobile development and I have been following advices from Alex Mamo's lecture and so far it has proven to be working. Now as I am trying to implement new things and fetch data, from one ...
1
vote
0
answers
173
views
Jetpack Compose and Firebase how to MVVM with relations between models
I'm currently trying my hand at Jetpack Compose and Firebase with the MVVM architecture. In the process, I came across a question that I can't answer with google.
My project is structured as follows:
...
0
votes
2
answers
255
views
Kotlin MVVM with Firebase not Observing data when added to MutableLiveData Array
I have a bottom Sheet Fragment with MVVM which is observing a Firebase Search which is then added to a MutableLiveData.
The .observe(viewLifecycleOwner){it->} is never accessed when data is set ...
0
votes
1
answer
196
views
HashMap List Is Null In ViewModel
I am building a chat app, and I am retrieving last chats with unread messages.
I am using firebase as my database and MVVM pattern.
So the problem is that I have to run 3 firebase requests in order to ...