onNotificationTap method

  1. @override
void onNotificationTap(
  1. Map<String?, Object?> message
)

Unfortunately, the intent provided to the app when a user taps on a notification does not include notification's title or body. In this instance, it makes more sense to remove this useful functionality from iOS too. Only the data property on the RemoteMessage is returned to the user. This is effectively the lowest common denominator API.

Hint: You can still include the title, body or other metadata in your data payload to identify what notification the user tapped on.

Implementation

@override
void onNotificationTap(Map<String?, Object?> message) {
  push._onNotificationTapStreamController.add(message);
}