Skip to main content

badge_kit 0.1.0 copy "badge_kit: ^0.1.0" to clipboard
badge_kit: ^0.1.0 copied to clipboard

A Flutter plugin to update the app icon badge and clear notifications through a single API. Swift Package Manager only on iOS.

Changelog #

0.1.0 #

Initial release.

  • setBadge(int count) — set the app icon badge count.
  • clearBadge({bool removeNotifications}) — clear the badge, optionally removing all notifications from the notification center.
  • isBadgeSupported() — check whether the device/launcher supports badges.
  • clearAllNotifications() — remove all delivered notifications.
  • clearNotificationsByTag(String tag) — remove delivered notifications by tag.
  • clearNotificationsByTags(List<String> tags) — remove delivered notifications matching any of the given tags in a single pass.
  • Android: notification clearing by tag(s); numeric badges are intentionally not supported (modern launchers use notification dots driven by active notifications), so setBadge is a no-op and isBadgeSupported() returns false.
  • iOS: Swift Package Manager only (no CocoaPods podspec); requires Flutter 3.44+. Uses UNUserNotificationCenter.setBadgeCount on iOS 16+.
0
likes
160
points
159
downloads

Documentation

API reference

Publisher

verified publishertukuyo.net

Weekly Downloads

A Flutter plugin to update the app icon badge and clear notifications through a single API. Swift Package Manager only on iOS.

Repository (GitHub)
View/report issues

Topics

#badge #notifications #app-icon-badge #swift-package-manager

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on badge_kit

Packages that implement badge_kit