-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
ShortcutBadger 1.1.13 in xiaomi 4c (OS miui 8) #170
Comments
Yes, seems we need to control the notification more. |
I have same issues in XIAOMI , can you tell me how to control the notification. TK. sorry , my english is very bad... |
@leolin310148 @congdanh1608 @BelongsH Seeing the same blank notification on a Xiaomi Redmi 4 running Android 6.0.1 and MIUI 8.0.3.0.0(MCECNDG). This is due to commit bcb3afd. It seems with the new MIUI wants you to display a notification to set the badge count. I did a bit of testing with some different settings to the By default, without any code in |
Hi, I saw this issue in Redmi Note 3G (MIUI 8) as well... |
I saw this issue in Redmi 1s and OS is MIUI 8 |
Just remove that blank notification by using below code for mi devices: NotificationManager notoficatioManager = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); |
@jkasten2 wrote:
I don't have a Xiaomi device to test my app with, so I'd like some clarification: If my app already receives and handles notifications normally, do I need to take any action? It sounds like the badge will just update automatically. Do I still need to use |
As of 1.1.14 of this library @ygnessin Correct, the launcher by default without any code for MIUI 8 at lest. It may still check for permissions howvever, I have only test with the same If you do need the badge value to differ from the notification count shown in the notification shade you will need to set the count when you display a notification with the below code. ShortcutBadger.applyNotification(getApplicationContext(), notification, badgeCount); See this wiki page on the full details of this new method. |
@amitsrivastava10 I wouldn't recommend the hack you posted. I haven't tested this but it would probably still show the blank notification for a split second. The new |
@jkasten2 What do you mean about 1.1.14? Does the bug still appear in 1.1.14? I read that 1.1.14 "Remove Xiaomi from Badger and add Notification Support for Xiaomi devices." We use 1.1.13 and have people complaining about this bug (for example with Xiaomi Mi5s, Android 6.0.1) |
@Malachiasz Calling If you want some other custom value you must show some kind of notification to the user and call |
@leolin310148 In this case the issue should be closed. |
after i update the ShortcutBadger to 1.1.13 my xiaomi 4c (OS miui 8) show a blank notification when i call this function
![device-2017-02-07-121340](https://cloud.githubusercontent.com/assets/14673327/22678804/76a15f4c-ed2f-11e6-9c4d-7e843c7b1c6f.png)
ShortcutBadger.applyCount(context, badgeCount);
Thanks!
The text was updated successfully, but these errors were encountered: