terminatedNotificationHandler method

Future<String?> terminatedNotificationHandler()

Checks if the app was opened from the terminated state by a notification

If so, returns the path to redirect to. Otherwise, returns null.

Implementation

Future<String?> terminatedNotificationHandler() async {
  final RemoteMessage? message = await instance.getInitialMessage();
  return _getRedirectUri(message);
}