This article guides you through building a basic Android application using Compose, MVVM architecture, Room database for data persistence, Flow for asynchronous data updates, and Dagger Hilt for dependency injection. It's intended for developers fami...

Markdown supported · ⌘↵ to post
Fermín
Hello, a very good article, I am trying to implement a "FirebaseMessagingService" with this code, but I cannot update the list of items in "ItemListScreen", I added this code when receiving a message: var appdatabase = AppModule.provideAppDatabase(applicationContext) var itemDao: ItemDao = AppModule.provideItemDao(appdatabase) var itemRepository: ItemRepository = AppModule.provideItemRepository(itemDao) itemRepository.insert(Item(name = "test"))
but it doesn't work, could you tell me where I'm going wrong? Thank you so much.