thudugala / Plugin.LocalNotification

The local notification plugin provides a way to show local notifications from .Net MAUI and Xamarin Forms apps .
MIT License
417 stars 68 forks source link

Badge is bound to a notification request #472

Open fhintsch opened 7 months ago

fhintsch commented 7 months ago

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

thudugala commented 7 months ago

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

fhintsch commented 7 months ago

@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