Kotlin

Android Kotlin Chat App with Firebase – Display ChatList & Total unRead Messages on Chats Fragment



This is the video tutorial#12 of Android Studio Chat App like Facebook messenger and whatsapp clone. We will develop this app using firebase database , firebase authentication , firebase storage , firebase cloud messaging android studio for android real time push notifications.

In this video you will learn about how to display the total number of unseen and unread messages on chatlist ChatsFragment using firebase.

Link to Firebase Dependencies:…

12 thoughts on “Android Kotlin Chat App with Firebase – Display ChatList & Total unRead Messages on Chats Fragment

  1. i keep getting this error "E/RecyclerView: No adapter attached; skipping layout." i re-watched the video twice and even started again. when i check firebase, i can see that the messages are sending but it's not displaying in the app.

  2. When I log out and register a new user it shows a wrong:

    E/AndroidRuntime: FATAL EXCEPTION: main

    Process: code.fortomorrow.messengerapp, PID: 22480

    kotlin.KotlinNullPointerException

    at code.fortomorrow.messengerapp.Fragments.ChatFragment$retriveChatLists$1.onDataChange(ChatFragment.kt:88)

    at com.google.firebase.database.core.ValueEventRegistration.fireEvent(com.google.firebase:firebase-database@@19.2.0:75)

    at com.google.firebase.database.core.view.DataEvent.fire(com.google.firebase:firebase-database@@19.2.0:63)

    at com.google.firebase.database.core.view.EventRaiser$1.run(com.google.firebase:firebase-database@@19.2.0:55)

    at android.os.Handler.handleCallback(Handler.java:790)

    at android.os.Handler.dispatchMessage(Handler.java:99)

    at android.os.Looper.loop(Looper.java:164)

    at android.app.ActivityThread.main(ActivityThread.java:6958)

    at java.lang.reflect.Method.invoke(Native Method)

    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)

  3. Assalamualaikom vai,!
    When I register a new user it shows a wrong:

    E/AndroidRuntime: FATAL EXCEPTION: main

    Process: code.fortomorrow.messengerapp, PID: 22480

    kotlin.KotlinNullPointerException

    at code.fortomorrow.messengerapp.Fragments.ChatFragment$retriveChatLists$1.onDataChange(ChatFragment.kt:88)

    at com.google.firebase.database.core.ValueEventRegistration.fireEvent(com.google.firebase:firebase-database@@19.2.0:75)

    at com.google.firebase.database.core.view.DataEvent.fire(com.google.firebase:firebase-database@@19.2.0:63)

    at com.google.firebase.database.core.view.EventRaiser$1.run(com.google.firebase:firebase-database@@19.2.0:55)

    at android.os.Handler.handleCallback(Handler.java:790)

    at android.os.Handler.dispatchMessage(Handler.java:99)

    at android.os.Looper.loop(Looper.java:164)

    at android.app.ActivityThread.main(ActivityThread.java:6958)

    at java.lang.reflect.Method.invoke(Native Method)

    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:441)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1408)

  4. Bro, I have a peculiar problem that I can not find a solution even on stack overflow my app can not built due to the below error:
    Cannot fit requested classes in a single dex file (# methods: 70468 > 65536)

Leave a Reply

Your email address will not be published. Required fields are marked *