Compose MVVM RoomDB with Flow and DI
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...
saurabhjadhavblogs.com13 min read
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.