push_notification_kit 0.4.0 copy "push_notification_kit: ^0.4.0" to clipboard
push_notification_kit: ^0.4.0 copied to clipboard

Auth-agnostic Flutter push notifications: FCM token lifecycle, rich notifications (images & action buttons), deep links, and pluggable backend registration. Bring your own auth via a TokenProvider.

0.4.0 #

  • Cold-start action support: PushKit now captures the notification/action that launched the app from a terminated state (via getNotificationAppLaunchDetails for local-notification action taps, and getInitialMessage for FCM taps) and exposes it via processPendingLaunch(). Call it once after runApp (router/DI ready) — it fires onAction for an action-button cold start or onTap otherwise. This closes the gap where accept/decline taps from a killed app were not handled. init() no longer dispatches the cold-start tap itself.
  • Local-notification payloads now carry the full data block; PushMessage.fromData reconstructs the complete message (participantId, type, …) on tap, not just the deep link.

0.3.0 #

  • Add engagement reporting: EngagementReporter (+ bundled HttpEngagementReporter and CallbackEngagementReporter). Pass one as PushKit(reporter: …) and the kit reports an "opened" event on notification tap and a "clicked" event on action- button tap, so the backend can compute open/click rates. Best-effort.
  • Local-notification payloads now carry the platform messageId (JSON) so taps on rendered notifications can be attributed. PushMessage.messageId exposes it.

0.2.0 #

  • Add iosCategories to PushKit and renderBackgroundMessage so hosts can register iOS notification categories (action buttons per category) directly on the kit's plugin instance — previously iOS action buttons required native AppDelegate setup. Android is unchanged (buttons come from message actions).
  • Re-export DarwinNotificationCategory / DarwinNotificationAction (and their option enums) from the package so hosts don't need a direct flutter_local_notifications import.

0.1.0 #

  • Initial release.
  • Auth-agnostic FCM lifecycle: permissions, token retrieval (iOS APNS retry), refresh, auth-gated registration, foreground/background handling.
  • Rich notifications: downloaded images (Android BigPicture), action buttons, iOS categories.
  • Deep-link tap and action-button callbacks; cold-start handling.
  • Pluggable TokenProvider and DeviceRegistrar (+ bundled HttpDeviceRegistrar).
0
likes
130
points
167
downloads

Documentation

API reference

Publisher

verified publisherconapps.net

Weekly Downloads

Auth-agnostic Flutter push notifications: FCM token lifecycle, rich notifications (images & action buttons), deep links, and pluggable backend registration. Bring your own auth via a TokenProvider.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

firebase_messaging, flutter, flutter_local_notifications, http, path_provider

More

Packages that depend on push_notification_kit