firebaseMessagingBackgroundHandler function

Future<void> firebaseMessagingBackgroundHandler(
  1. RemoteMessage? message
)

Implementation

@pragma('vm:entry-point')
Future<void> firebaseMessagingBackgroundHandler(RemoteMessage? message) async {
  showLogI('=====Firebase Handling a background $message=====');
  if (message == null) return;
  await fcmCallMessageCallBack(
    where: "onBackground",
    message: message,
    callBack: (result) async {
      String json = result.toString();
      showLogI(json);
      showLogI("=============================================");
    },
    error: (error) {},
  );
}