brudcast_push library
Push notifications for the Brudcast Flutter SDK: permission, the FCM token, the notification handler, and open tracking that needs no Dart code.
Add BrudcastPush.module to BrudcastOptions.modules, then use Brudcast.push.
Classes
- BrudcastPush
-
Push notifications. Brudcast sends through FCM, so pass the FCM token from
firebase_messagingto setToken. Taps are recorded natively, with no Dart code. - BrudcastPushKeys
- The data keys Brudcast adds to every push notification.
- BrudcastPushNotification
- A push notification Brudcast sent.
Enums
- BrudcastNotificationDecision
- What the notification handler wants done with a Brudcast notification that arrives while the app is open.
- BrudcastPushPermission
- Whether the app may show notifications.
Extensions
- BrudcastPushAccess on BrudcastSdk
-
Push notifications. Add BrudcastPush.module to
BrudcastOptions.modulesto run it.
Typedefs
-
BrudcastNotificationHandler
= FutureOr<
BrudcastNotificationDecision> Function(BrudcastPushNotification notification) - Decides whether a notification arriving while the app is open shows. It has two seconds to answer, after which the notification shows.