-
Notifications
You must be signed in to change notification settings - Fork 232
App crashes on notification click #596
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
@rgtstha Thank you for reporting we will investigate. Is this happening on every notification open? Is this happening when the app is backgrounded/foregrounded/killed? |
I am not able to reproduce this issue from any of the app states when using flutter 3.3.2 and OneSignal Flutter 3.4.1 in my example project. Is this happening consistently for your app? |
It is happening every time when notification is tapped in all cases (foreground/background/killed). I have initialized the the Onesignal setup in the home page. Below is the snippet of my code I used for the setup.
I have tried removing one signal gradle plugin from |
@rgtstha to handle deeplink (
|
@rgtstha Hello! Did the fix above resolve this issue? |
@andrea689's solution fixed the app crash issue. But |
Ok I am closing this one then as a duplicate of #540 |
@SolitaryWolf This solution worked for me. In your case |
But you said that 'But setNotificationOpenedHandler function has not been called after tapping to the notification.' That mean this just fixes crash only? cannot open the deeplink when click notification, right ? |
Description:
Notification is triggered and displaying in the android notification bar but clicking on notification shut down the app with error.
Environment
onesignal_flutter: ^3.4.1
Steps to Reproduce Issue:
onesignal_flutter: ^3.4.1
inpubspec.yaml
Anything else:
Error Code:
The text was updated successfully, but these errors were encountered: