[英]How to send iOS push notifications through AWS Pinpoint and firebase?
I would like to know how to send iOS push notifications throught AWS Pinpoint with the GCMMessage
channel.我想知道如何使用
GCMMessage
通道通过 AWS Pinpoint 发送 iOS 推送通知。 Can anyone provide a working json payload that gets sent through FCM to an iOS device?任何人都可以提供通过 FCM 发送到 iOS 设备的有效 json 有效负载吗?
It seems that the same payload for Android is used with iOS, but for sending data messages I had to add the property "content_available": "1"
似乎 Android 的相同有效负载与 iOS 一起使用,但为了发送数据消息,我必须添加属性
"content_available": "1"
payload = {
"notification": {
"title": "title",
"body": "body",
"sound": "default",
"badge":"1"
},
"content_available": "1",
"data": {
"key_1": "some value",
"key_2": "some value"
}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.