push_notification library
Classes
- AndroidNotificationSpecifics
- Android notification settings.
- BaseMessagingService
- Base wrapper over any message service.
- NotificationController
- Wrapper over surf notifications.
- NotificationPayload
- Notification base payload data.
- NotificationSpecifics
- Specific notification settings for platforms.
- Notificator
- Util for displaying notifications for Android and iOS.
- PushHandler
- Notification handling.
-
PushHandleStrategy<
PT extends NotificationPayload> - Abstract notification processing strategy.
- PushHandleStrategyFactory
- Abstract factory for push notification strategies.
- Global navigator context storage.
- PushObserver
- Mixin to get navigator context.
Enums
Constants
- bodyArg → const String
- callInit → const String
- Methods names.
- callRequest → const String
- callShow → const String
- channelName → const String
- Channel name.
- dataArg → const String
- imageUrlArg → const String
- notificationSpecificsArg → const String
- openCallback → const String
- permissionDeclineCallback → const String
- pushIdArg → const String
- Arguments names.
- pushIdParam → const String
- titleArg → const String
Typedefs
-
HandleMessageFunction
= void Function(Map<
String, dynamic> message, MessageHandlerType handlerType) -
NotificationCallback
= void Function(Map<
String, dynamic> payload) - OnNotificationTapCallback = void Function(Map notificationData)
- Callback notification clicks.
- OnPermissionDeclineCallback = void Function()
- Callback on permission decline.
-
StrategyBuilder
= PushHandleStrategy<
NotificationPayload> Function(Map<String, dynamic> payload) - Strategy builder function.