Badge is bound to a notification request
fhintsch opened this issue · 2 comments
Is your feature request related to a problem? Please describe.
For me it is unclear how to handle the badgeNumber in a notification request. Example: I start a request R1 with badge B1 and RepeatInterval T1. Later I start request R2 with badge B2 and RepeatInterval T2.
This will result in swapping badges B1/B2 on the app icon upon receiving a notification. And if I delete R1, I will see badge B2
Describe the solution you'd like
I guess the badgeNumber should not be bound to a request.
Describe alternatives you've considered
It should be part of LocalNotificationCenter.Current.
Additional context
@fhintsch have you tried https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/essentials/badge?tabs=android
This would not work for me, since for my project I am still bound to Xamarin, could not use MAUI. Instead I used the Xamarin.Badge.Plugin package