Describe the bug
in Source/Plugin.LocalNotification/Platforms/Android/ScheduledAlarmReceiver.cs
in the OnReceived method
The conditional to check if there was pending notifications after reboot (requestedList.Count) is inverted
currently it has
var requestList = NotificationRepository.Current.GetPendingList();
if (requestList.Count > 0)
{
LocalNotificationCenter.Log("No Pending Notification Request");
return;
}
it should be
var requestList = NotificationRepository.Current.GetPendingList();
if (requestList.Count <= 0)
{
LocalNotificationCenter.Log("No Pending Notification Request");
return;
}
To Reproduce
Steps to reproduce the behavior:
- Running with the current conditional never restores notifications after reboot
Expected behavior
Invert the conditional to what makes sense for the code block
Platform (please complete the following information):
- OS: [Android]
- Version [All i would assume]
Smartphone (please complete the following information):
- Device: [Emulator]
- OS: []
- Version []
Describe the bug
in Source/Plugin.LocalNotification/Platforms/Android/ScheduledAlarmReceiver.cs
in the OnReceived method
The conditional to check if there was pending notifications after reboot (
requestedList.Count) is invertedcurrently it has
it should be
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Invert the conditional to what makes sense for the code block
Platform (please complete the following information):
Smartphone (please complete the following information):