push-notification - 如何在 MFP 的推送通知中发送宣传图片
解决方案
我收到错误“错误请求 - 'gcm' 处的 JSON 验证失败。” 具有以下 JSON 有效负载:-
{
"settings": {
"gcm": {
"payload": {
"action": "ACTION",
"path": "/path"
},
"style":{
"notification_type":"PICTURE_NOTIFICATION",
"url":"https://homepages.cae.wisc.edu/~ece533/images/airplane.png",
"title":"RICH PUSH"
}
},
"apns": {
"payload": {
"action": "ACTION",
"path": "/path"
}
}
},
"message": {
"alert": "Test MFP PUSH Notification."
},
"target": {
"userIds" : ["11359164"]
}
}
响应 JSON:-
{
"code": "FPWSE0011E",`enter code here`
"message": "Bad Request - The JSON validation failed at 'gcm'."
}
我正在使用 MFP 8.0,请建议对上述 JSON 进行更改。
推荐阅读
- asp.net-core - UserManager.GetUserAsync 总是返回 null
- python - 为数组中的每个槽分配不同的随机数
- php - 加载 MacOS php.ini 配置
- postgresql - pgadmin4 导入 CSV 文件失败退出代码 -6
- python - 从 Transfermarkt 抓取数据
- java - Maven 错误 POM Manifest Build with Dependencies Java 单 jar
- reactjs - 反应:不调用 img 标签中的 onLoad 回调
- python - 如何让烧瓶在 VS Code 中正确运行?
- flutter - 尝试添加 PageView
- c# - 文件上传 SendKyes 不起作用 Selenium