foreground_push_notifications library

Classes

MeSendDataPushPayload
Parsed MeSend FCM data payload (no notification block required).
MeSendPushAction
A tray notification CTA button parsed from title{n} / url{n} / action{n} push data.
MeSendPushNotificationDisplay
Displays tray notifications for FCM messages (notification or data-only).

Properties

meSendConfiguredFirebaseBackgroundOptions → FirebaseOptions?
FirebaseOptions stored by configureMeSendFirebaseBackgroundInit in this isolate (for tests / main-isolate use only).
no setter

Functions

configureMeSendFirebaseBackgroundInit({required FirebaseOptions options}) → void
Stores FirebaseOptions in the current isolate.
meSendHandleBackgroundRemoteMessage(RemoteMessage message, {required FirebaseOptions options}) Future<void>
Handles an FCM message in a background isolate.
setMeSendNotificationActionHandler(MeSendNotificationActionHandler? handler) → void
Internal hook used by the SDK core to consume tray CTA button taps.
setMeSendNotificationOpenHandler(MeSendNotificationOpenHandler? handler) → void
Internal hook used by the SDK core to consume opened-notification payloads.

Typedefs

MeSendForegroundNotifications = MeSendPushNotificationDisplay
Backward-compatible alias used during SDK init.
MeSendNotificationActionHandler = void Function(MeSendPushAction action, Map<String, dynamic> data)
MeSendNotificationOpenHandler = void Function(Map<String, dynamic> payload)