javascript - FCM 不发送 webpush 通知
问题描述
我正在使用 FCM 发送通知,它与通知和数据完美配合,但是当我尝试发送 webpush 对象时,它会忽略它。
这是我正在使用的请求示例。
{
"message":{
"token":"bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1...",
"notification":{
"title":"Match update",
"body":"Arsenal goal in added time, score is now 3-0"
},
"data": {
"key1": "value"
}
"webpush":{
"notification":{
"click_action":"something"
}
}
}
}
解决方案
推荐阅读
- angular - 使用来自角度 10 中另一个组件的数据更新对象
- python - 如何使用预定义列表中的单词出现在数据框的文本列中的次数的计数器创建一个新列?
- ios - 发生并发症的顺序是什么?如何更改数据?
- json - 当地人 城市名称
- javascript - 在 chrome 手机上加载图像
- byte-buddy - 如何拦截现有类的方法并使用字节伙伴将所有调用委托给接口的不同实现
- asp.net-core - 在 Visual Studio 中调试 ASP.NET Core 应用程序
- python - 未找到 Mongod.service => 从空双端队列弹出 => 身份验证失败
- spring - 如何使用 RestTemplate 传递标头值?
- cookies - 为什么浏览器对我的表单显示不同的 CSRF 值