KMPNotifier icon indicating copy to clipboard operation
KMPNotifier copied to clipboard

Navigate after clicking notification

Open Ashkan-san opened this issue 9 months ago • 1 comments

Hey, this might be out of scope of this library, but I'm trying to navigate to a specific screen when clicking a notification, but I cant make it work. I am receiving the correct id to navigate to the path detail/{id}, but navigation is not happening correctly. I probably have to use deep links and pending intents, but am unsure on how and where to call them. Does anyone know how to implement this in kmp/cmp?

Ashkan-san avatar Mar 17 '25 16:03 Ashkan-san

@Ashkan-san I've used data store to store the notification when receiving it, by sending a callback to onClickListener, and when the app comes to foreground, I check if something is stored inside data store and if so, I open that screen.

dominiram avatar Mar 19 '25 19:03 dominiram