flutter_native_badge_foundation 2.0.1 copy "flutter_native_badge_foundation: ^2.0.1" to clipboard
flutter_native_badge_foundation: ^2.0.1 copied to clipboard

PlatformiOSmacOS

iOS and macOS implementation of the flutter_native_badge plugin. Wraps the native APIs for iOS and macOS to set the badge count on the app icon.

flutter_native_badge_foundation #

pub package

The iOS and macOS implementation of flutter_native_badge.

Usage #

This package is endorsed, which means you can simply use flutter_native_badge normally. This package will be automatically included in your app when you do, so you do not need to add it to your pubspec.yaml.

However, if you import this package to use any of its APIs directly, you should add it to your pubspec.yaml as usual.

Implementation Details #

  • Uses Pigeon for type-safe communication between Dart and native code
  • iOS: Uses UNUserNotificationCenter for modern badge APIs (iOS 16+) with applicationIconBadgeNumber fallback
  • macOS: Uses NSApplication.dockTile.badgeLabel for badge counts and NSDockTile for red dot indicators
  • Includes PrivacyInfo.xcprivacy for Apple's privacy manifest requirements
1
likes
150
points
75
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

iOS and macOS implementation of the flutter_native_badge plugin. Wraps the native APIs for iOS and macOS to set the badge count on the app icon.

Repository (GitHub)
View/report issues

Topics

#badge #notification #app-icon

License

MIT (license)

Dependencies

flutter, flutter_native_badge_platform_interface, meta

More

Packages that depend on flutter_native_badge_foundation

Packages that implement flutter_native_badge_foundation