notificationArrived static method

Future<void> notificationArrived(
  1. Map<String, dynamic> notification
)

Called when a notification arrives sends the MBMessageMetricsMetric.view metric.

Implementation

static Future<void> notificationArrived(
  Map<String, dynamic> notification,
) async {
  int? messageId = _messageIdForNotification(notification);
  if (messageId == null) {
    return;
  }
  return _createPushNotificationMetric(
    MBMessageMetricsMetric.view,
    messageId,
  );
}