Skip to content

TesteurManiak/flutter_super_badge

Repository files navigation

flutter_super_badge

A native plugin to update the app badge count on the app icon.

Inspired by flutter_app_badger & flutter_app_badge_control.

Supported Platforms

Android iOS
updateBadgeCount
removeBadge

Getting Started

iOS

On iOS, you will have to add the following to your Info.plist file:

<key>UIBackgroundModes</key>
<array>
    <string>remote-notification</string>
</array>

Android

You will have to request for notification permissions (e.g. with permission_handler)

Permission.notification.isDenied.then((value) {
    if (value) Permission.notification.request();
});

You can check the example app for a complete implementation.

As there's no official API to update the app badge count on Android. To ensure that at least the dot indicator is displayed on the launcher icon, a collapsed notification with the count is created.

Some launchers support the notification count display. The integration is done via the ShortcutBadgerX (forked from ShortcutBadger) library.

Supported Launchers

Sony

Samsung

LG

HTC

ASUS

ADW

APEX

NOVA

Yandex

(1.1.23+)

Huawei

(1.1.7+)

ZUK

(1.1.10+)

OPPO

(1.1.10+)

EverythingMe

ZTE

(1.1.17+)

KISS

(1.1.18+)

LaunchTime

TODO

  • Android: make the notification tap customizable

About

A native plugin to update the app badge count on the app icon in Flutter.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published