thudugala / Plugin.LocalNotification

The local notification plugin provides a way to show local notifications from .Net MAUI and Xamarin Forms apps .
MIT License
425 stars 68 forks source link

Local Notifications does not show up when the app is in background #470

Open sagarchopranimbus opened 9 months ago

sagarchopranimbus commented 9 months ago

Describe the bug Local Notifications do not show up when the app is in the background. I tried changing the battery optimisation settings to unrestricted and then the notifications worked fine. But this is not a good solution because not every user wants to disable their battery optimisations.

To Reproduce Steps to reproduce the behaviour:

  1. Schedule the notifications for a later time let us say after 30 seconds.
  2. Minimize the app.

Expected behaviour Notification should show even if the app is minimized

Platform (please complete the following information):

Smartphone (please complete the following information):

thudugala commented 9 months ago

@sagarchopranimbus https://github.com/thudugala/Plugin.LocalNotification/wiki/3.-Scheduled-Android-notifications