我已经为IOS应用程序集成了Firebase消息传递,并且一直可以正常运行直到昨天。现在它无法在后台模式下工作。
我注意到,当应用程序处于前台时,firebase消息传递中的 onMessage 回调与以前的有效负载有所不同。
上一个(正确的一个)
{
"from": "441854012104",
"aps": {
"alert": {
"title": "this is a title",
"body": "this is body"
}
},
"data": {
"type": "news",
"id": "2",
"click_action": "FLUTTER_NOTIFICATION_CLICK"
}
}
当前(错误)
{
"from": "441854012104",
"id": "2",
"notification": {
"title": "this is a title",
"body": "this is body"
},
"type": "news",
"click_action": "FLUTTER_NOTIFICATION_CLICK"
}
任何人都可以帮助解决此问题。谢谢