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

MAUI Android badge number adding up instead of overriding

Open IGC-P opened this issue 1 year ago • 2 comments

Description On some android devices that show badge number (like XIAOMI / Samsung Galaxy phones), the badge number is adding up instead of overriding, for example, if I just received a notification with badge 190, do not open or dismiss the notification and the next one comes with a badge number of 191, the badge will be updated to 381.

NOTE: Plugin version used is 10.1.8.

To Reproduce Steps to reproduce the behavior:

  1. Run app on an android device with badge number functionality
  2. Schedule 2+ local notification with badge number x, where x>1
  3. Wait for both notifications to show without opening either.
  4. First notification will have correct badge, but second one will have the addition of both numbers instead of only the second one.

Expected behavior Badge number should be overridden by following notifications instead of adding up.

Platform:

  • OS: Android
  • Version 13 & 14

Sample project

LocalNotificationTest.zip

Screen recording

https://github.com/user-attachments/assets/aa3058d2-de60-48e3-8a1d-f81f4cda5c96

IGC-P avatar Oct 07 '24 22:10 IGC-P

@IGC-P Can you please attach a sample project?

thudugala avatar Oct 08 '24 21:10 thudugala

@IGC-P Can you please attach a sample project?

Done, thanks for the quick reply, I just added a sample project and a screen recording showing the behavior.

IGC-P avatar Oct 09 '24 21:10 IGC-P