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

Badge is bound to a notification request

Open fhintsch opened this issue 1 year ago • 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 avatar Feb 07 '24 14:02 fhintsch

@fhintsch have you tried https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/essentials/badge?tabs=android

thudugala avatar Feb 20 '24 07:02 thudugala

@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

fhintsch avatar Feb 21 '24 16:02 fhintsch