如何在颤振中对 FCM 通知进行分组

时间:2021-01-06 19:26:50

标签: flutter push-notification firebase-cloud-messaging flutter-dependencies

如何对 FCM 通知进行分组(如果有多个通知,则在一个堆栈中), 我尝试在我的有效负载中使用“标签”键(正如其他答案中所建议的那样),但它使新通知替换了上一个通知。

这是我用于通知的内容:

data: {
            'notification': {
                'title': notificationTitle,
                'body': notificationBody,
            },
            'priority': 'high',
            'data': {
                'click_action': 'FLUTTER_NOTIFICATION_CLICK',
                'id': '1',
                'status': 'done'
            },
            'to': userToken
           },
}

0 个答案:

没有答案
相关问题