我有问题。我尝试通过向https://fcm.googleapis.com/fcm/send发送发布请求来向iOS应用发送通知 请求:
{
"notification":
{
"body": "test",
"sound" : "default",
},
"data":
{
"id": "",
"type": "",
},
"project_id": "my-app-id",
"registration_ids": [ "6d0a9931d0b5145e69c2aa5402b4acbf46b6da7193c659c5858ff4c3baa417d5" ],
"time_to_live" : 3,
"priority" : "high"
}
每次我得到 回应:
{
"multicast_id": 6755836923824168435,
"success": 0,
"failure": 1,
"canonical_ids": 0,
"results": [
{
"error": "InvalidRegistration"
}
]
}
但是当我使用NWPusher(https://github.com/noodlewerk/NWPusher)时,一切正常,我收到了推送通知 image of success sending push notification