dart_fcm/setup_on_message library

Functions

firebaseMessagingBackgroundHandler(RemoteMessage message) Future<void>
setupOnMessage(TargetPlatform platform, AndroidNotificationChannel? androidChannel, FlutterLocalNotificationsPlugin localNotificationsPlugin, OnMessageCallback? callback) → void
setupOnMessage is responsible for setting up what happens when a message is received Disclaimer : please note that this method is excluded from coverage since we have have not identified a way to extend/implement firebase or use generic for it's static methods which function consumes Anyone with an idea of how to do, please implement and teach us.

Typedefs

OnMessageCallback = void Function(Map<String, dynamic>? data, String? title, String? body)