【发布时间】:2020-04-21 19:29:01
【问题描述】:
我有一个问题,我正在尝试通过http 发送 FCM 通知。当我发送以下有效负载时:
{
"notification" : {
"body" : "test Notification",
"title": "test Notification",
"image" : "https://www.fillmurray.com/640/360"
},
"to":"firebasetoken",
"priority":"high"
}
我在移动设备上收到通知,但通知仅包含标题和正文。我尝试将 image 更改为 imageurl 但也没有用。
我想如下显示我的通知。
我将不胜感激。去年年初试过,这个payload很好。
【问题讨论】:
-
这能回答你的问题吗? Firebase FCM notification image won't show
-
你在使用nodejs吗?什么图书馆?
-
我使用 Ionic4 和原生推送通知库 (@ionic/fcm/ngx)
标签: android ionic-framework push-notification firebase-cloud-messaging ionic-native