checkDidNotificationLaunchApp method
Future
checkDidNotificationLaunchApp(
)
Implementation
Future checkDidNotificationLaunchApp() async {
try {
// Récupérer la charge utile de la notification si l'application est lancée à partir d'un clic sur une notification
final NotificationAppLaunchDetails? notificationAppLaunchDetails =
await flutterLocalNotificationsPlugin.getNotificationAppLaunchDetails();
if (notificationAppLaunchDetails?.didNotificationLaunchApp ?? false) {
//initialRoute = notificationAppLaunchDetails!.payload;
logCat('NotificationController: IN onDidReceiveNotificationResponse');
getNavigatorPushNamed(notificationResponse: notificationAppLaunchDetails?.notificationResponse);
}
} catch (ex, trace) {
logError(ex, trace: trace, position: 'catch::checkDidNotificationLaunchApp');
}
}