【发布时间】:2022-01-09 23:24:21
【问题描述】:
我正在尝试获取通知操作按钮数据。也就是用户填写输入动作的时候,我得到他输入的数据。
就这样。
我正在使用 awesome_notifcations 颤振包。
这是我的函数,用于创建带有评论输入操作的新通知
Future<void> create({
required String key,
required String title,
required String body,
required String bigPicture,
}) async {
await _notiff.createNotification(
content: NotificationContent(
id: DateTime.now().millisecondsSinceEpoch.remainder(10),
channelKey: key,
title: title,
body: body,
bigPicture: bigPicture,
notificationLayout: NotificationLayout.BigPicture,
),
actionButtons: [
NotificationActionButton(
buttonType: ActionButtonType.InputField,
enabled: true,
label: "Comment",
key: "COMMENT_BUTTON_KEY")
]);
}
这里我只是想获取用户的评论。
怎么做?
【问题讨论】:
标签: android flutter push-notification android-notifications