Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badge is bound to a notification request #472

Open
fhintsch opened this issue Feb 7, 2024 · 2 comments
Open

Badge is bound to a notification request #472

fhintsch opened this issue Feb 7, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@fhintsch
Copy link

fhintsch commented Feb 7, 2024

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 fhintsch added the enhancement New feature or request label Feb 7, 2024
@thudugala
Copy link
Owner

@fhintsch
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants