logPushNotification method
void
logPushNotification(
- String? title,
- String? body, {
- String? subtitle,
- int? badge,
- String? category,
- String? from,
- String? messageId,
- int? priority,
- bool hasNotification = false,
- 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,
),
);
}