flutter_native_badge 2.1.0
flutter_native_badge: ^2.1.0 copied to clipboard
Flutter plugin for setting the badge count on native platforms. Wraps the native APIs for iOS, macOS, and Android to set the badge count on the app icon.
2.1.0 27th October 2026 #
- NEW: Android support via
flutter_native_badge_android(#7)- Uses the launcher badge API on Huawei and Honor, and a silent notification carrying the count on all other launchers (Android 8.0+)
requestPermission()requestsPOST_NOTIFICATIONSon Android 13+ (API 33)isSupportednow returnstrueon Android
- NEW: Swift Package Manager support for iOS and macOS (via
flutter_native_badge_foundation2.1.0) - Fix
setBadgeCount(0)showing a literal "0" on the macOS dock icon instead of clearing it - Bump minimum Flutter version to 3.44.0
- Correct the docs for
showRedDot()on iOS (no-op) and remove the unnecessaryUIBackgroundModessetup step - Add Android, iOS and macOS platform projects and integration tests to the example app
2.0.1 10th April 2026 #
- Add comprehensive dartdoc to all public APIs
- Add
analysis_options.yamlwithflutter_lints - Add
topicsandscreenshotsto pubspec.yaml - Rewrite README with platform support table, installation guide, migration guide from
flutter_app_badger, and full API reference - Fix example widget test
2.0.0 9th April 2026 #
- BREAKING: Bump minimum SDK to Dart >=3.11.0, Flutter >=3.41.0
- BREAKING:
isSupportedis now a synchronous getter instead ofFuture<bool> - Deprecate
getBadgeCount()— on iOS it uses a deprecated API (applicationIconBadgeNumber) - Add standalone
requestPermission()method - Use
defaultTargetPlatforminstead ofdart:iofor platform checks (web-compatible) - Remove leaked
checkPlatformAndRequestPermissiontop-level function - Upgrade Pigeon to v26 for regenerated native bindings
- Add unit tests
1.0.5+dev #
- [iOS] Migrate from the deprecated badge API (#3).
Now
getBadgeCountin iOS isn't recommended because it depends on the deprecated API and could be unavailable in future iOS releases.
1.0.5 5th May 2024 #
- [iOS] added privacy manifest
- Bump
flutterversion to 3.19.6 - Add
derryto manage scripts - Update dependencies and increase version
1.0.4 18th April 2023 #
- Update dependencies and increase version
1.0.3 18th April 2023 #
- Add preview gif to readme
1.0.2 15th April 2023 #
- Update dependencies and increase version
1.0.1 15th April 2023 #
- Downgrade to dart 2.18.4
1.0.0 15th April 2023 #
- Initial Open source release of flutter_native_badge for iOS and macOS
