notification_badge_plus 1.0.8
notification_badge_plus: ^1.0.8 copied to clipboard
A Flutter plugin for displaying notification badges on app icons with comprehensive Android manufacturer support and iOS compatibility.
1.0.8 #
Release date: 2026-05-05
- ๐งน Auto-cleanup of legacy badge notification artifacts - Added
LegacyBadgeNotificationCleanerthat deletes the staleApp Badge Notifications/Badge Notificationschannels and cancels lingering "Badge Count" helper notifications left by plugin versions โค 1.0.6. Runs automatically on plugin start and before everysetBadgeCountcall. - ๐งฐ New
cleanLegacyBadgeNotifications()API - Exposes the cleanup explicitly so apps can trigger it on demand (e.g. during a migration step). No-op on iOS.
1.0.7 #
Release date: 2026-05-01
- ๐ Fixed extra Android notification category - Removed the Oreo fallback provider that created a synthetic "Badge Count" notification/channel and caused duplicate badge entries.
- ๐ง Updated Xiaomi badge strategy - Switched from notification-based MIUI badge updates to launcher broadcast/provider updates so badge changes no longer create user-visible helper notifications.
- ๐ Docs & polish - Corrected README troubleshooting samples (
NotificationBadgePlus), aligned background guide with non-notification MIUI behavior, avoided duplicate OPPO/OnePlus broadcasts, updated Nova Launcher package lookup for Android 13+, unified Dart error log prefix.
1.0.6 #
- โจ Added iOS Permission Helpers - Added
checkPermissions()andrequestPermissions()to handle iOS notification badge permissions easily. - ๐ง Fixed Podspec Versioning - Updated
notification_badge_plus.podspecto match the current package version and repository URL. - ๐ Improved iOS Documentation - Updated README with instructions and examples for handling iOS permissions.
1.0.5 #
- Verified repository URL - Finalized repository links and verified for production deployment.
- Improved documentation - Updated README and package metadata for better clarity and production readiness.
1.0.4 #
- ๐ง Fixed Android Namespace Issue - Resolved build failure by adding explicit
namespacetoandroid/build.gradlefor AGP 8.0+ compatibility. - ๐ฑ Improved Android SDK Support - Upgraded
compileSdkVersionto 35 and updatedJavaVersionto 11 for better compatibility with modern Android development environments.
1.0.3 #
- ๐ฆ Added Swift Package Manager (SPM) support - Added
Package.swiftfile to enable Swift Package Manager compatibility for iOS - โจ Improved package scoring - Package now meets pub.dev requirements for SPM support, improving overall package score
- ๐ง iOS build system enhancement - Package can now be used with both CocoaPods and Swift Package Manager
1.0.2 #
- ๐ง Fixed iOS compilation errors - Resolved Swift compiler errors by removing non-existent
getBadgeCountAPI calls - ๐ฑ Improved iOS compatibility - Use
UIApplication.applicationIconBadgeNumberfor consistent badge retrieval across all iOS versions
1.0.1 #
- Added
SERVER_PAYLOAD_GUIDE.mdwith comprehensive instructions for server-side badge payloads (iOS/Android/FCM/APNs). - Replaced all instances of "OEM" with "manufacturer" for clarity and consistency across documentation and code.
- Enhanced logging in Dart, Android (Kotlin), and iOS (Swift) code to improve workflow visibility in debug mode.
- Documentation updated to reflect terminology and logging improvements
1.0.0 #
- Initial release of notification_badge_plus package
๐ Core Features #
- Comprehensive Android support for notification badges including:
- Samsung devices with native BadgeProvider integration
- Xiaomi/Redmi/POCO devices with notification-based badges optimized for MIUI
- Huawei/Honor devices with EMUI-compatible badge system
- OPPO/OnePlus/Realme devices with ColorOS and OxygenOS support
- Vivo/iQOO devices with FuntouchOS badge support
- Sony devices with Xperia launcher integration
- HTC devices with Sense UI badge support
- LG devices with LG UX launcher compatibility
- Nova Launcher support with TeslaUnread integration
- Android Oreo+ default notification badges for stock Android
๐ iOS Support #
- Full iOS support for all iOS versions (9.0+)
- iOS 16+ compatibility with latest UNUserNotificationCenter APIs
- Legacy iOS support with UIApplication fallback methods
- Automatic background and foreground state management
- Badge persistence across app states and device restarts
๐ Background/Foreground Handling #
- Automatic app lifecycle management with WidgetsBindingObserver integration
- Badge count persistence across all app states (foreground, background, terminated)
- Seamless synchronization when app returns to foreground
- Push notification integration with background badge updates
- Cross-platform consistent behavior
๐ฑ API Methods #
setBadgeCount(int count)- Set badge count with validationgetBadgeCount()- Retrieve current badge countclearBadge()- Clear badge (set to 0)incrementBadge()- Increment badge by 1decrementBadge()- Decrement badge by 1 (minimum 0)isSupported()- Check device badge supportgetDeviceManufacturer()- Get device manufacturer (Android)
๐ Documentation #
- Comprehensive README with usage examples and platform-specific details
- Background and Foreground Handling Guide - Detailed guide for lifecycle management
- Quick Reference Guide - Fast reference for common scenarios
- Complete example app demonstrating all features
- Troubleshooting guides for common issues
- Best practices and performance considerations
๐ง Technical Implementation #
- Cross-platform API with consistent error handling
- Device manufacturer detection for optimal Android handling
- SharedPreferences persistence on Android
- Thread-safe iOS implementation
- Comprehensive logging and debugging support
- No external dependencies required
- Flutter 3.0+ and Dart 3.0+ compatibility