FCM HTTP v1 推送通知 - 图像未推送

时间:2021-07-31 08:53:51

标签: firebase-cloud-messaging

我想通过 FCM HTTP v1 发送 FCM 通知,但我的移动设备上的通知仅包含标题和正文,不包含图像。

有效载荷:

“消息”: {

    "data":
    {
        "messageKey":"20010",
        "messageMarketResId":"1479",
        "messageMarketResType":"sticker"
    },
    "notification":
    {
        "title":"my_title",
        "body":"my_content",
        "image":"https://www.google.com.hk/logos/doodles/2021/doodle-champion-island-games-july-29-6753651837109022-s.png"
    },
    "android":
    {
        "priority":"high",
        "ttl":"1000s",
        "notification":
        {
            "title":"test_title",
            "body":"test_content",
            "click_action":"OPEN_ACTIVITY_3",
            "sticky":true,
            "event_time":"2021-07-31T16:24:44Z",
            "local_only":true,
            "notification_priority":3,
            "visibility":1,
            "image":"https://www.google.com.hk/logos/doodles/2021/doodle-champion-island-games-july-29-6753651837109022-s.png"
        },
        "fcm_options":
        {
            "analytics_label":"1189035880645832716440819600"
        },
        "direct_boot_ok":false
    },
    "token":"**********"
}

0 个答案:

没有答案