---
title: "Comment by Fermín on \"Compose MVVM RoomDB with Flow and DI\" | Hashnode"
description: "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 a"
url: "https://hashnode.com/posts/compose-mvvm-roomdb-with-flow-and-di/65775000384e70d70d28ee8a/comment/662f7927f889238c52084a89"
---

[Discussion](https://hashnode.com/posts/compose-mvvm-roomdb-with-flow-and-di/65775000384e70d70d28ee8a)

Comment [Compose MVVM RoomDB with Flow and DI](https://hashnode.com/posts/compose-mvvm-roomdb-with-flow-and-di/65775000384e70d70d28ee8a)

[Fermín](https://hashnode.com/@FerSan)

[Apr 29, 2024](https://hashnode.com/posts/compose-mvvm-roomdb-with-flow-and-di/65775000384e70d70d28ee8a/comment/662f7927f889238c52084a89)

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.
