flutter_fcm_actions library

Classes

ActionInterceptor
Runs around action execution. Returning null cancels the action.
DebugFcmActionsLogger
Default logger that uses debugPrint and suppresses verbose release logs.
FcmActions
One-call facade for the common single-Firebase-app use case.
FcmActionsClient
Injectable, independently disposable package API.
FcmActionsConfig
Immutable initialization options for FcmActionsClient.
FcmActionsInitResult
Outcome of FcmActions.initialize / FcmActionsClient.initialize.
FcmActionsLogger
Receives package diagnostics. Implementations must not throw.
NotificationAction
A platform-neutral notification action.
NotificationActionEvent
Rich event emitted for action taps and inline replies.
NotificationActionHandler
Object-oriented alternative to a callback action handler.
NotificationAnalytics
Optional analytics adapter (Firebase Analytics, Mixpanel, or custom).
NotificationChannel
Cross-platform channel configuration.
NotificationEvent
Emitted whenever a notification is received, displayed, opened, or removed.
NotificationInterceptor
Runs around notification display.
NotificationMessage
A normalized FCM or local notification.
NotificationMiddleware
Composable action processing stage.
NotificationPermission
Cross-platform snapshot of notification permission.
NotificationPermissionRequest
Options forwarded to the platform permission prompt.
RouteMapper
Maps a payload type to a named Flutter route.
SilentFcmActionsLogger
Logger that discards every message.

Enums

ActionExecutionMode
Whether an action runs in the UI isolate, a background isolate, or either.
ChannelImportance
Android notification importance abstraction.
FcmLogLevel
Package log verbosity.
NotificationAuthorization
User decision for notification delivery.
NotificationInteraction
The kind of user interaction with a notification.
NotificationPlatform
The operating system that produced an event.
NotificationState
The lifecycle context in which a notification event was observed.

Extensions

NotificationActionEventPatterns on NotificationActionEvent
Adds pattern-matching-related methods to NotificationActionEvent.
NotificationActionPatterns on NotificationAction
Adds pattern-matching-related methods to NotificationAction.
NotificationChannelPatterns on NotificationChannel
Adds pattern-matching-related methods to NotificationChannel.
NotificationEventPatterns on NotificationEvent
Adds pattern-matching-related methods to NotificationEvent.
NotificationMessagePatterns on NotificationMessage
Adds pattern-matching-related methods to NotificationMessage.
RouteMapperPatterns on RouteMapper
Adds pattern-matching-related methods to RouteMapper.

Exceptions / Errors

DuplicateNotificationException
A message or action was already processed inside the replay window.
FcmActionsException
Base class for recoverable package failures.
FcmActionsInitializationException
Firebase, plugin, or binding setup failed.
InvalidNotificationPayloadException
A payload failed validation or could not be parsed.
UnregisteredActionException
An action id was referenced without a registered definition.