onLaunch method

Future<void>? onLaunch(
  1. RemoteMessage 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(ex, trace){
    logError(ex, trace: trace, position: 'onLaunch');
  }
  performActionOnNotification(message);
  return null;
}