-
Notifications
You must be signed in to change notification settings - Fork 231
[Bug]: Push Notifications Not Opening App When Closed #993
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
Comments
Hi @bahadirkalay, is this an issue with the push notification and OneSignal SDK, or is this an issue with your custom navigation? If you don't use this |
Hi @nan-li, Thank you for your response! I tested the behavior without using the _handleNotificationClick method, and unfortunately, the app still does not open when the push notification is tapped while the app is closed. This issue occurs on both iOS and Android platforms. It seems like the app is not being launched at all when tapping the notification, regardless of whether a launch URL is present. When the app is in the background or foreground, the notifications work as expected, but this issue specifically happens when the app is fully closed. I have followed the setup documentation for OneSignal and ensured that all required permissions and configurations are in place. Do you have any suggestions on how to debug or resolve this issue? Thank you in advance for your help! |
I am facing the same issue! I am on 5.3.0 and clicking notifications on background and terminated state doesn't opens up the application! And even if I send a a custom link via launchURL it doesn't open that url. |
Description:
I am experiencing an issue with push notifications in my Flutter application. When the app is closed, tapping on a push notification does not open the app or navigate to the specified page. Here are the details:
Platform:Andoid, IOS
Flutter Version: 3.19.0
OneSignal SDK Version: 5.1.2
Expected Behavior: When a push notification is tapped, the app should open and navigate to the specified route or page.
Actual Behavior: Tapping on a push notification does not open the app when it is closed.
Steps to reproduce?
What did you expect to happen?
I expected the app to open and navigate to the specified page when I tap on a push notification, even if the app is closed.
OneSignal Flutter SDK version
5.1.2
Which platform(s) are affected?
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: