amazon-web-services - 将 Google Cloud Messaging 的 'User Notification' 功能与 Amazon SNS 移动推送结合使用

标签 amazon-web-services push-notification google-cloud-messaging amazon-sns

我正在使用 Amazon SNS 移动推送。我们将通过 Google Cloud Messaging (GCM) 在 Android 上首次实现推送通知。

到目前为止,我们的设备端点注册工作流程运行良好:

Android device resumed -> Obtain GCM Reg ID -> Send Reg ID to server -> Server sends Reg ID to Amazon SNS to obtain Endpoint ARN -> Server stores Endpoint ARN for later use

这里没有问题!但是,我要问的问题是:在使用 Amazon SNS 移动推送时,我们如何为在多个设备上安装应用程序的用户提供支持?

GCM 将此功能称为 User Notifications .

考虑到我们将继续支持 iOS,或许还有中国的设备(通过百度云推送),Amason SNS API 中是否内置了允许端点“分组”的机制?

我曾考虑过跟踪我端的“用户 -> 端点”映射 - 然后向所有用户的端点发送消息 - 但这看起来像是一种黑客行为。

谢谢!

最佳答案

经过大量搜索,AWS Mobile Push 似乎没有此类功能。如果您希望支持向每个用户的多个设备发送推送通知,您需要跟踪用户在数据库中注册的所有端点 ARN。

关于amazon-web-services - 将 Google Cloud Messaging 的 'User Notification' 功能与 Amazon SNS 移动推送结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24829936/

相关文章:

react-native - PushNotificationIOS 在模拟器上工作吗?

ios - 单击应用程序图标时推送通知应用程序内角标(Badge)图标未更新

android - GoogleCloudMessaging.unregister 是否删除 token

android - Google 云消息传递 - GCM - SERVICE_NOT_AVAILABLE

java - 如何重置设备的 Google Cloud Messaging 注册?

amazon-web-services - 如何在 ECR 源管道中向 CodeDeploy 提供 AppSpec 和任务定义

python - 限制我的程序通过 SQS 发送过多 SES 电子邮件的速率

amazon-web-services - 通过awscli和boto3, secret 管理器在EC2中的运行速度极慢

amazon-web-services - 必须在构建器或设置环境中提供显式区域以提供区域

android - 在通知内容中显示表情符号