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

Not receiving background notifications on Android #549

Closed
dovahkiin98 opened this issue May 9, 2022 · 9 comments
Closed

Not receiving background notifications on Android #549

dovahkiin98 opened this issue May 9, 2022 · 9 comments

Comments

@dovahkiin98
Copy link

dovahkiin98 commented May 9, 2022

I'm using the latest version of OneSignal for flutter (3.3.0).

As far as I know, OneSignal uses Firebase to send notifications to mobile, but for some reason, it only works while the app is in the foreground?

If you close the app then swipe it, or force close it, you never receive a notification. I even tried implementing the NotificationExtender, still nothing.

In Firebase, the notification is supposed to be handled by the system, but OneSignal doesn't seem to handle background notifications when the app is terminated.

Any solution to that?

@jkasten2
Copy link
Member

@dovahkiin98 Thanks for reporting, you do not need to setup the OneSignal NotificationServiceExtension in order for notifications to display.

How are you "force closing" the app?

Could you capture the full logcat from the device when you send a notification? (Do not filter, make sure it show verbose as well, and not limited to your app so it shows system entries)

Could you share the Android versions and device models you have tested this scenario on?

@dovahkiin98
Copy link
Author

@jkasten2 Either with the Android's "Force Close" in the settings, or simply just swiping the application in the Recent Apps

@nawzhin95
Copy link

nawzhin95 commented May 27, 2022

still have same issue .....

@davetebonfire0302
Copy link

Same still have the issue

@apoorvpandey0
Copy link

same issue

@jkasten2
Copy link
Member

jkasten2 commented Mar 2, 2023

Please share the device model and Android version that is having this specific issue so we can look into it.

@Davete0302
Copy link

Happening on all android device model and android version

Please share the device model and Android version that is having this specific issue so we can look into it.

@MingSern
Copy link

It works previously, now seems like not working again for some reason

@jennantilla
Copy link
Contributor

Hello everyone! Apologies this issue has gone stale. If anyone is still having issues with receiving background notifications on the latest SDK version, please open a new issue and provide the full log from the device reproducing the issue.

Note that our latest SDK is a major release bump and includes breaking changes. Please see our migration guide for full details.

Thanks!

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