Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

flutter_app_badger only show badges on Android when having a push notification #68

Open
huubao2309 opened this issue Sep 27, 2022 · 5 comments

Comments

@huubao2309
Copy link

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?

@Add00w
Copy link

Add00w commented Jan 31, 2023

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();

@lukasz8888
Copy link

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?

@Binozo
Copy link

Binozo commented Jan 16, 2024

+1 Same problem here

@phillsch
Copy link

Same Problem here with a Pixel

@ShuheiSuzuki-07
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants