I am using ShortcutBadger to show the badge number manually above app icons.
val badgeCount = 1;
try {
ShortcutBadger.applyCountOrThrow(this, badgeCount)
Log.d("ShortcutBadger Success:", badgeCount.toString())
} catch (e: ShortcutBadgeException) {
Log.d("ShortcutBadger Fail:", e.toString())
}
The example above set badgeCount as "1" but how can I get the current badgeCount. I would like to increment the badge number.
There are devices that does not support badge number anymore as far as I know. Is there a way to add a notification dot instead of adding badge count?