[英]Firebase Silence Push Notification with HTTP V1
I'm trying to send content_available: true
for silent notifications.我正在尝试发送
content_available: true
用于静默通知。 But it doesnt work with HTTPS v1.但它不适用于 HTTPS v1。 And there's no explanation in documentation.
并且文档中没有任何解释。
It was like that on previous api: https://firebase.google.com/docs/cloud-messaging/http-server-ref but couldnt find any documentation for http v1.就像以前的 api: https://firebase.google.com/docs/cloud-messaging/http-server-ref但找不到 http v1 的任何文档。
What is the correct payload for sending silent notifications any ideas?发送静默通知的正确有效负载是什么?
{
"message": {
"content_available": true,
"topic": "device",
"data": {
"order_id": 123123,
"notification_type": 1,
"app_name": "my app"
},
"notification": {
"title": "Your Edit Request",
"body": "Edit was requested from my app"
},
"android": {
"notification": {
"sound": "default"
}
},
"apns": {
"payload": {
"aps": {
"sound": "default"
}
}
}
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.