handleNotificationAction method

void handleNotificationAction(
  1. Map<String, dynamic> message
)

Implementation

void handleNotificationAction(Map<String, dynamic> message) {
  if (message['notification_content'] != null &&
      message['notification_content']['action'] != null &&
      message['notification_content']['action']['href'] != null) {
    launchUrl(Uri.parse(
        message['notification_content']['action']['href'].toString()));
  }
}