Skip to main content

pkb_fcm_notification 1.1.0 copy "pkb_fcm_notification: ^1.1.0" to clipboard
pkb_fcm_notification: ^1.1.0 copied to clipboard

Push notifications (FCM) for Flutter apps in three calls: permission prompt, device registration, foreground display, tap handling and inbox. Android and iOS.

1.1.0 #

  • App icon badge: PkbFcm.setBadge(count) / PkbFcm.clearBadge() — iOS sets the number directly; Android returns false (no public API; the launcher shows a dot/number from pending notifications).
  • PkbFcmMessage.badge reads data['badge'] sent by the server (Laravel package with PUSH_BADGE=true).
  • Foreground messages carrying a badge update it automatically (iOS) or set the notification number (Android).
  • logout() clears the badge.

1.0.0 #

  • Initial release: PkbFcm.init() / login() / logout() / onOpened / onMessage / unreadCount() and PkbFcmInboxPage.
  • Android: foreground notifications and tap handling via bundled native code (Java) — no flutter_local_notifications.
  • iOS: foreground presentation via firebase_messaging; supports CocoaPods and Swift Package Manager.
  • Concurrent login() calls share one registration; taps are de-duplicated on cold start.
  • Flutter 3.22+ (firebase_core 3–4, firebase_messaging 15–16).
  • Pairs with the Laravel package soat/laravel-soat-fcm-notification.
0
likes
160
points
441
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Push notifications (FCM) for Flutter apps in three calls: permission prompt, device registration, foreground display, tap handling and inbox. Android and iOS.

Repository (GitHub)
View/report issues

Topics

#push-notifications #firebase-messaging #fcm #notifications

License

MIT (license)

Dependencies

firebase_core, firebase_messaging, flutter, http

More

Packages that depend on pkb_fcm_notification

Packages that implement pkb_fcm_notification