logPushNotification method

  1. @override
void logPushNotification(
  1. String? title,
  2. String? body, {
  3. String? subtitle,
  4. int? badge,
  5. String? category,
  6. String? from,
  7. String? messageId,
  8. int? priority,
  9. bool hasNotification = false,
  10. bool hasData = false,
})
override

Manually logs a push notification as a breadcrumb

The parameters subtitle, badge and category are exclusive to iOS notifications, while the parameters from, messageId, priority, hasNotification and hasData are exclusive to Android notifications

Implementation

@override
void logPushNotification(
  String? title,
  String? body, {
  String? subtitle,
  int? badge,
  String? category,
  String? from,
  String? messageId,
  int? priority,
  bool hasNotification = false,
  bool hasData = false,
}) {
  _runCatching(
    'logPushNotification',
    () => _platform.logPushNotification(
      title: title,
      body: body,
      subtitle: subtitle,
      badge: badge,
      category: category,
      from: from,
      messageId: messageId,
      priority: priority,
      hasNotification: hasNotification,
      hasData: hasData,
    ),
  );
}