已尝试访问onDidReceiveNotification中的完整消息,但没有candy。notificationResponse中的所有属性都不包含原始完整消息。
/// Sets up Local Notifications and its Listeners
Future<void> _localNotificationsSetup(
BuildContext context, CashticUser currentUser) async {
_flutterLocalNotificationsPlugin.initialize(
const InitializationSettings(
android: AndroidInitializationSettings(
'@drawable/ic_notification'),
iOS: DarwinInitializationSettings(),
), onDidReceiveNotificationResponse:
(NotificationResponse notificationResponse) async {
{
log.d(notificationResponse.notificationResponseType);
log.d(notificationResponse.actionId);
log.d(notificationResponse.input);
log.d(notificationResponse.id);
log.d(notificationResponse.payload);
1条答案
按热度按时间moiiocjp1#
在show方法中提供payload属性: