Plugin.LocalNotification icon indicating copy to clipboard operation
Plugin.LocalNotification copied to clipboard

Badge count reset not working

Open PonyOny opened this issue 3 years ago • 2 comments

Describe the bug The badge count is not resetting

To Reproduce Steps to reproduce the behavior:

  1. Create a Notification that will set the badge
  2. 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 avatar Feb 17 '22 16:02 PonyOny

@PonyOny can you try 9.2.1-preview01

thudugala avatar Mar 17 '22 05:03 thudugala

@PonyOny, please try 10.0.0-preview02

thudugala avatar Jun 27 '22 12:06 thudugala