Skip to content

MAUI Android badge number adding up instead of overriding #520

@IGC-P

Description

@IGC-P

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

android-recording-2.mp4

Metadata

Metadata

Assignees

Labels

AndroidAndroid only issuebugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions