Skip to content

Navigate after clicking notification #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Ashkan-san opened this issue Mar 17, 2025 · 1 comment
Open

Navigate after clicking notification #129

Ashkan-san opened this issue Mar 17, 2025 · 1 comment

Comments

@Ashkan-san
Copy link

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?

@dominiram
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants