简体   繁体   English

如何通过 AWS Pinpoint 和 firebase 发送 iOS 推送通知?

[英]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.

相关问题 从一个 Pinpoint 项目向多个 iOS 应用程序发送推送通知 - Send push notifications from one Pinpoint project to multiple iOS apps iOS Firebase 推送通知:如何提供 Firebase 用户的设备令牌并发送通知 - iOS Firebase Push Notifications : How To Give Firebase User's Device Token And Send Notification 使用 AWS-Pinpoint 将通知推送到多个设备 - Push notifications to Multiple devices using AWS-Pinpoint react-native Ios AWS pinpoint notifications not received not received on testflight - react-native Ios AWS pinpoint notifications not receiving on testflight 如何使用 Firebase 调试 iOS 的推送通知 - how do I debug push notifications for iOS with Firebase 使用 AWS SNS 和 firebase 云消息传递 (fcm) 发送推送通知有什么好处 - whats the benefits of using AWS SNS with firebase cloud messaging(fcm) to send push notifications iOS 推送通知不适用于 Firebase - iOS Push Notifications doesn't work with Firebase 通过 Firebase 云消息控制台在 iOS 推送通知中发送图像 - Sending an Image in iOS Push-Notifications through Firebase Cloud Messaging Console 如何翻译 Firebase 推送通知? - How to translate Firebase Push Notifications? 如何通过 AWS SNS 发送高优先级推送通知 - How to send the High priority push notification through AWS SNS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM