无法在 iOS 9.2 上接收 FCM 主题消息

Unable to receive FCM Topic Messaging on iOS 9.2

我编写的应用程序使用 FCM 主题消息从服务器接收推送通知。

我的 HTTP 请求是:

https://fcm.googleapis.com/fcm/send
Content-Type:application/json
Authorization:key=AIzaSyZ-1u...0GBYzPu7Udno5aA
{
"to":"/topics/Foo-bar",
"priority":"high",
"content_available": true,
"data":{
    "notification-type":"chat",
    "target":"Current User",
    "title":"Current User has sent you a message",
    "text": "hello1",
    "badge": 5  //Badge you want to show on app icon
   }
}

我得到的回复是:

{
"message_id": 6199072048907273657
 }

但它没有收到设备上的通知。

以及如何在调试器中打印通知数据?

Payload应该是这样的。而不是数据使用通知对象。

{
"to":"/topics/test",
"notification":{
    "type":"test",
    "title":"test!",
    "message":"test"
     }
}