smart_firebase_fcm 1.0.10 copy "smart_firebase_fcm: ^1.0.10" to clipboard
smart_firebase_fcm: ^1.0.10 copied to clipboard

A plug-and-play modular Firebase FCM package with local notifications, redirection, and manual feature toggles (analytics, crashlytics, etc.).

Changelog #

All notable changes to this project will be documented in this file.

1.0.9 - 2025-09-29 #

🎨 Custom Notification Icon Support #

  • βœ… Custom Android Notification Icons: Added support for custom notification icons using drawable/mipmap resources
  • βœ… Dynamic Icon Updates: Change notification icons at runtime without reinitializing
  • βœ… Multiple Icon Sources: Support for both @drawable/ and @mipmap/ resources
  • βœ… Backward Compatibility: Existing code continues to work with default @mipmap/ic_launcher
  • βœ… Enhanced API: Added androidNotificationIcon parameter to FCMInitializer.initialize()
  • βœ… Utility Methods: Added setAndroidNotificationIcon() and getAndroidNotificationIcon() methods
  • βœ… Per-Notification Icons: Support for custom icons in showCustomNotification()
  • βœ… Updated Documentation: Comprehensive guide for Android icon requirements and usage
  • βœ… Example App Enhancement: Interactive notification icon customization demo

πŸ”§ API Changes #

New Parameters:

  • androidNotificationIcon in FCMInitializer.initialize()
  • androidIcon in LocalNotificationService.showCustomNotification()

New Methods:

  • FCMInitializer.setAndroidNotificationIcon(String iconPath)
  • FCMInitializer.getAndroidNotificationIcon()
  • LocalNotificationService.setAndroidNotificationIcon(String iconPath)
  • LocalNotificationService.getAndroidNotificationIcon()

πŸ“± Usage Examples: #

// Initialize with custom icon
await FCMInitializer.initialize(
  onTap: handleNotificationTap,
  androidNotificationIcon: '@drawable/ic_notification',
);

// Change icon dynamically
FCMInitializer.setAndroidNotificationIcon('@mipmap/ic_custom');

// Custom notification with specific icon
await LocalNotificationService.showCustomNotification(
  id: 1,
  title: 'Test',
  body: 'Test notification',
  androidIcon: '@drawable/ic_message',
);

1.0.3 - 2025-07-01 #

πŸŽ‰ Initial Release #

  • βœ… Firebase FCM integration
  • βœ… Foreground, background, and terminated state redirection
  • βœ… Local notification support using flutter_local_notifications
  • βœ… Android channel setup
  • βœ… Toggle flags for Firebase Analytics and Crashlytics
  • βœ… Single-line initialization with optional message handler
1
likes
135
points
293
downloads

Publisher

verified publisherquantumeye.in

Weekly Downloads

A plug-and-play modular Firebase FCM package with local notifications, redirection, and manual feature toggles (analytics, crashlytics, etc.).

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

firebase_analytics, firebase_core, firebase_crashlytics, firebase_messaging, flutter, flutter_local_notifications

More

Packages that depend on smart_firebase_fcm