Android OS Badge Count
This is in regards to specifically Android OS App Badges (no root, stock/OEM launcher).
Android API level 26+ started treating badge icons differently, where they only show currently active notifications. I’ve gotten use to this for most apps, but it’s still frustrating for specifically Discord. I use App Badges to differentiate how important something is I reply to it, since sometimes I need to just ignore notifications entirely but don’t want to have to look at each one to know if it’s a message, a tag, or a DM.
although this is the “standard” behavior of Android 8+, I want to Feature Request that badges be re-worked for Android to show the subjectively “correct” information.
its been a while since I’ve worked with Android app dev, but there is a way to manually modify the app badge in Android 8+: https://developer.android.com/training/notify-user/badges
My suggestion is to use discord’s knowledge of all mentions and DMs (since the app knows this anyway regardless of what version one is using) to manually update the badge count.
throw a listener into the background that is activated when the internal mention/dm unread count changes. Then, manually update the badge count OnAppSuspended, OnAppExit (if it doesn’t suspend the app first), and when the user interacts with a notification (swiping the notification away shouldn’t change the badge count, but clicking “Mark as Read” or replying via notification should)
Accedi per aggiungere un commento.
Commenti
0 commenti