-
Notifications
You must be signed in to change notification settings - Fork 66
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
Not displaying badge on Xiaomi devices #440
Comments
@adam-musiol This is a device-specific issue. Check your device settings. |
Other applications badge works fine. I can see Gmail badge, so device is configured correctly. I've cheked notification settings for this example app and there was badge on icon turned off, but enabling it didn't resolve the issue. |
@adam-musiol Do you have any other device to test that is only happening on Xiaomi devices? I do not have Xiaomi phone to test this. We need help from someone else. |
I've been doing more tests and it turned out that I had to enable POSTNOTIFICATIONS permission in Android Manifest and it started working. |
It turned out that there's still some issues on Xiaomi. Badge only works when I'm debugging. When I launch app outside of Visual Studio, Badge is no longer working, it only shows notification. On Samsung with Android 13 Badge works fine. |
@adam-musiol can you get the badge to work with https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/essentials/badge?tabs=tizen |
It doesn't work for any device. |
我也是redmi note 9 pro(android 12 api 29) 如果你说的badge是小图标的话,可能小米手机上的通知图标是根据安装App的图标生成的,如果更换图标可能必须要更换应用图标,重装,并清理手机缓存不然他还是显示的上个应用的图标 |
Describe the bug
On Xiaomi devices badge is not working. Local notification shows up, but badge is not showing on app icon.
On emulator local notification & badge is working fine.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Local notification with badge
Smartphone (please complete the following information):
Sample project attached
MauiNotifications.zip
The text was updated successfully, but these errors were encountered: