onLaunch method

Future<void>? onLaunch(
  1. dynamic message
)

This method will be called on tap of the notification which came when app was closed

Implementation

Future<void>? onLaunch(/*RemoteMessage*/ message) {
  logCat('onLaunch: $message');
  try {
    if (checkPlatform.isIOS) {
      message = modifyNotificationJson(message.data);
    }
  } catch (e) {
    logCat(e);
  }
  performActionOnNotification(message);
  return null;
}