Badge count reset not working
Describe the bug The badge count is not resetting
To Reproduce Steps to reproduce the behavior:
- Create a Notification that will set the badge
- Open the app from background or if closed.
Expected behavior App badge should reset when app is opened
Platform (please complete the following information):
- OS: iOs
- Version 15.2.1 Smartphone (please complete the following information):
- Device: iphone 7
- OS: iOs
- Version 15.2.1
Additional context
using the following code will not reset the badge
public override void WillEnterForeground(UIApplication uiApplication) { Plugin.LocalNotification.NotificationCenter.ResetApplicationIconBadgeNumber(uiApplication); }
Modifying the code like this will clear the badge
public override void WillEnterForeground(UIApplication uiApplication) { UIApplication.SharedApplication.ApplicationIconBadgeNumber = 0; }
@PonyOny can you try 9.2.1-preview01
@PonyOny, please try 10.0.0-preview02