【发布时间】:2021-02-28 19:05:02
【问题描述】:
我需要有关 Flutter 通知的帮助。
我已经在我的颤振应用程序中配置了 firebase_messaging。当我从 Firebase 控制台发送测试通知时,它们在前台和后台工作。当我从后端 rest api 服务发送通知时,它们仅在前台工作。即在这种情况下仅触发 onMessage。
来自 REST API 的示例通知正文:
{notification: {title: null, body: null}, data: {intent: payment, body: 2500 shillings payment made, title: You have paid, click_action: FLUTTER_NOTIFICATION_CLICK}}
【问题讨论】:
标签: flutter firebase-cloud-messaging flutter-notification