iOS - 通过 FCM 向 APNs 发送推送通知图像不起作用

iOS - Sending Push Notification Image to APNs via FCM not working

正在尝试使用 Firebase 云消息传递将图像发送到 APNs,但 Firebase Docs 中的负载不起作用。

Firebase 文档:https://firebase.google.com/docs/cloud-messaging/ios/send-image

## Request
curl -X "POST" "https://fcm.googleapis.com/fcm/send" \
     -H 'Content-Type: application/json' \
     -H 'Authorization: key={web_token}' \
     -d $'{
  "to": "fcm_token",
  "priority": "high",
  "apns": {
    "payload": {
      "aps": {
        "mutable-content": 1
      }
    },
    "fcm_options": {
      "image": "mage_urli"
    }
  },
  "data": {
    "Room": "PortugalVSDenmark",
    "Nick": "Mario"
  },
  "notification": {
    "title": "Portugal vs. Denmark",
    "body": "great match!"
  }
}'

所以我 运行 遇到了同样的问题,我在修复它的有效载荷的通知字段中添加了图像。

这是一个例子:

"notification": {
  "title": "Portugal vs. Denmark",
  "body": "great match!",
  "image": "image-url"}

好像文档有误。