Skip to content
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

onDidReceiveBackgroundNotificationResponse ios doesnt work since pakage version 15.1.2 #2134

Closed
mahirandigital opened this issue Oct 24, 2023 · 8 comments

Comments

@mahirandigital
Copy link

IOS background push notification cannot handle when tapping the notification bubble? can someone solve it? I treat u a teh tarik

@MaikuB
Copy link
Owner

MaikuB commented Nov 9, 2023

The onDidReceiveBackgroundNotificationResponse is currently only for notification actions. There's no support for dealing with tapping on the notification itself so perhaps this is where your confusion lies

@dinesh-brilworks
Copy link

This is what the code documentation says,
Screenshot 2024-02-13 at 7 15 19 PM

@MaikuB
Copy link
Owner

MaikuB commented Feb 13, 2024

That's the documentation for the typedef. It is not the callback itself

@MarlonS05
Copy link

MarlonS05 commented Aug 8, 2024

@MaikuB
How would you recommend to check if the notification was tapped while the App is in the background or foreground?

@yuran09
Copy link

yuran09 commented Oct 6, 2024

@MaikuB I am also having this same situation. Closing the issue does not solve.
How can we trigger events when user clicks the bubble itself??

@aclowkey
Copy link

Hey @MaikuB, thanks for this amazing repo! It's so useful, appreciate it!
I'm also struggling with handling the background notifications on Android.

I want to navigate to a specific route inside my app when notification is tapped.
This works on iOS - background / foreground, and on Android - Foreground.
But when the app is shutdown on Android - it won't work..

Do you have an idea what can be done to make it work?

@SeakyLuo
Copy link

@MaikuB Hi, can you please make the readme clearer on how to handle the tapping notification event properly? Or what needs to be set? The readme is too long and really looks like it is ok to just have a onDidReceiveNotificationResponse by looking up this keyword around the context.

@Levi-Lesches
Copy link
Contributor

@SeakyLuo I'm currently rewriting the README and splitting it into smaller sections in #2477. It's very much a work in progress, but there is a section on notification handlers. Hoping to push this out sometime this month!

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

8 participants