bdaya_fcm_handler library

Classes

FCMService
1: register this service using a DI package (e.g. GetX) 2: set fcmServiceFinder to a function that returns the FCMService singleton (e.g. Get.find

Enums

NotificationSource
Specifies the notification source OnMessage: messages from FirebaseMessaging.onMessage OnMessageOpenedApp: messages from FirebaseMessaging.onMessageOpenedApp OnBackgroundMessage: messages from FirebaseMessaging.onBackgroundMessage

Properties

fcmServiceFinder FCMService? Function()?
assign this to find and call the FCM service
getter/setter pair

Typedefs

FCMRequestFunc = Future<NotificationSettings> Function()
Request FCM settings for web,iOs and macOs
NotificationHandlerFunc = void Function(NotificationSource src, RemoteMessage message)
how the message listeners should look like