我正在尝试通过以下方式将图像添加到fcm修饰有效载荷中
const payload= {
notification: {
title: name,
body: msg.textContent,
image:url,
click_action: 'FLUTTER_NOTIFICATION_CLICK' // required only for onResume or onLaunch callbacks
},
data:{
screen:'chat',
chatid:chatid,
senderid:senderId
}
};