Skip to content
pubscout

flutter_app_badge_control

0.0.2, released 2 years ago by an unverified publisher

Flutter plugin for managing app icon badges on iOS and Android devices.

WASM-ready
$ flutter pub add flutter_app_badge_control
Source repository

What it does

It allows you to update or remove the badge count on your app icon for both iOS and Android platforms. It also provides functionality to check if app badge support is available on the device.

AI-written summary of version 0.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display unread counts on your app icon
  • You want to remove or reset badge counts on iOS and Android

Skip it when

  • You need badge updates to actually take effect on Android devices using `updateBadgeCount`
  • You are not using notifications permission on iOS

Strengths

  • Provides a simple API to check, update, and remove app icon badges
  • Supports both iOS and Android platforms

Weaknesses

  • Calling `updateBadgeCount()` has no effect on Android devices
  • Requires requesting notification permissions on iOS

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
1

Requires requesting notification permissions on iOS. On Android, it uses notification channels.

FlutterAppBadgeControl.isAppBadgeSupported().then((value) {
  print("isAppBadgeSupported: $value");
});
FlutterAppBadgeControl.removeBadge();
FlutterAppBadgeControl.updateBadgeCount(1);

Alternatives

Packages that do the same job and could replace flutter_app_badge_control.

Works with

Packages commonly used together with flutter_app_badge_control: ones it builds on, ones built on it, and its own family.