setNotificationOpenAppHandler method
void
setNotificationOpenAppHandler()
Specify notification open app handler
Implementation
void setNotificationOpenAppHandler() {
_notificationOpenSubscription =
FirebaseMessaging.onMessageOpenedApp.listen((RemoteMessage message) {
add(DidUserOpenedNotificationEvent(
title: message.notification?.title ?? "",
body: message.notification?.body ?? "",
payload: PushNotificationPayload.fromJson(message.data),
linkMobile: message.data["linkMobile"],
));
});
}