OneSignal-Flutter-SDK icon indicating copy to clipboard operation
OneSignal-Flutter-SDK copied to clipboard

[Feedback]: Cannot receive notifications in background

Open baimamboukar opened this issue 1 year ago • 4 comments

What's on your mind?

  • setNotificationOpenedHandler works pretty fine when the app is running.
  • And I'm able to receive notifications in foreground. I have handle the notification reception with setNotificationWillShowInForegroundHandler.

But when the app is terminated, I don't receive any notification.

  • My users are not in touch with some crucial that affect them.
  • Just like setNotificationWillShowInForegroundHandler, Is there any method like setNotificationWillShowInBackgroundHandler ?

Or is there any way to handle background notifications in flutter ?

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

baimamboukar avatar Jun 13 '23 14:06 baimamboukar

@baimamboukar Unfortunately the operating systems do not reliably provide the app with an opportunity to process background notifications when the app is swiped away so we do not have a method to support it currently

emawby avatar Jun 13 '23 20:06 emawby

Thanks @emawby for feedback....

  • OneSignal is such a cool solution for push notifications in flutter...
  • Hope this background notification feature will be available and stable in the next realeases 🎉

baimamboukar avatar Jun 14 '23 09:06 baimamboukar

Faced same issue in flutter and solved it, check my comment at issues#618.

tovidd avatar Aug 02 '23 16:08 tovidd

Faced same issue in flutter and solved it, check my comment at issues#618.

But in this case, the user had to interact with your notification, right? You can't, for example, store a flag in the app's database to read it after it loads.

manage4us avatar Nov 25 '23 00:11 manage4us