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

[Android] Not receiving notifications after the phone has been inactive #245

Open
stesvis opened this issue Oct 5, 2021 · 2 comments
Open

Comments

@stesvis
Copy link

stesvis commented Oct 5, 2021

Description:

When I run the app I can receive the notifications correctly, in foreground and in background, no issues there.
But when I don't use the phone for some time (for example i put it in airplane mode at night), and then i wake up the phone and start using it regularly again, it stops receiving the notifications.

Environment

  • Com.OneSignal: v3.10.6
  • Xamarin.Forms: v5.0.0.2083
  • Device: Huawei P20 Pro
  • Android: v10

Steps to Reproduce Issue:

  1. Install the OneSignal NuGet package for xamarin and set everything up following the official documentation
  2. Run you app at least once (then you can leave it open or close it)
  3. Send yourself some push notifications
  4. Push notifications are received
  5. Stop using the phone for a few hours (if you can, i know...). For example I left it in airplane mode at night
  6. Wake up the phone again, but do NOT run or open the app
  7. Send yourself new push notifications
  8. I do not receive them
  9. Open the app
  10. Send yourself another push notification
  11. The notification is received, along with those that were missed in the steps before

Anything else:

iOS works as intended.

@jkasten2
Copy link
Member

jkasten2 commented Oct 28, 2021

@stesvis Thanks for reporting with detail steps. This is due to Huawei's EMUI force killing apps, this means all events are longer received by the app (including pushes). The user can whitelist your app to prevent this.
See the following for more details on this:

@IFourPrayag
Copy link

IFourPrayag commented Jan 10, 2022

I have Nokia 7.2, it has stock android (android 11)

I'm also facing one related issue after I swipe away app from tray post 15 minutes I do not receive any notification, unless I unlock my screen then all notifications come togather.

also facing the issue in MI A1 (android 9)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants