flutter_app_badger icon indicating copy to clipboard operation
flutter_app_badger copied to clipboard

flutter_app_badger only show badges on Android when having a push notification

Open huubao2309 opened this issue 3 years ago • 5 comments

I use flutter_app_badger and It work perfect on iOS device.

But On my Android device, I cannot use FlutterAppBadger.updateBadgeCount(1) or FlutterAppBadger.removeBadge() for updating badges.

Badges on my Android device, It only update when having a push notification. Then, I can use FlutterAppBadger.updateBadgeCount(1) or FlutterAppBadger.removeBadge() for updating badges.

How can i update the badge on android device without depending on pushing notification?

huubao2309 avatar Sep 27 '22 01:09 huubao2309

I use flutter_app_badger and It work perfect on iOS device.

But On my Android device, I cannot use FlutterAppBadger.updateBadgeCount(1) or FlutterAppBadger.removeBadge() for updating badges.

Badges on my Android device, It only update when having a push notification. Then, I can use FlutterAppBadger.updateBadgeCount(1) or FlutterAppBadger.removeBadge() for updating badges.

How can I update the badge on android device without depending on pushing notification?

These methods are supported by some android devices but not all, to check if your device supports the badge or not use FlutterAppBadger.isAppBadgeSupported();

Add00w avatar Jan 31 '23 14:01 Add00w

On my Samsung Galaxy S10 and Google Pixel 5 FlutterAppBadger.isAppBadgeSupported() returns true but when I call FlutterAppBadger.updateBadgeCount(1) it does not display any badge on my icon. Other apps like Gmail show the badge properly. Any ideas?

lukasz8888 avatar Jun 02 '23 01:06 lukasz8888

+1 Same problem here

Binozo avatar Jan 16 '24 18:01 Binozo

Same Problem here with a Pixel

phillsch avatar Jan 24 '24 12:01 phillsch

Android does not offer the same badge display functionality at the OS level as iOS. They are provided at the API level by the manufacturer of the device or launcher application (e.g. MicrosoftLauncher). Basically, Android should not support Badge display and should conform to the specifications of the OS, launcher app, and device.

seal-app-07 avatar Mar 18 '24 07:03 seal-app-07