【发布时间】:2015-12-15 11:12:59
【问题描述】:
我想同时向多个平台(Android 和 iOS)发送相同的消息。我如何使用 Amazon SNS API 来实现这一点。谁能建议任何有用的链接? 我需要类似下面的东西。但我不知道如何发布这个 meaasge。因为每个平台我们都有不同的 Endpoint ARN。另外我想知道创建主题的需要是什么?
{
"default": "This is the default message which must be present when publishing a message to a topic. The default message will only be used if a message is not present for
one of the notification platforms.",
"APNS": "{\"aps\":{\"alert\": \"Check out these awesome deals!\",\"url\":\"www.amazon.com\"} }",
"GCM":"{\"data\":{\"message\":\"Check out these awesome deals!\",\"url\":\"www.amazon.com\"}}",
"ADM": "{ \"data\": { \"message\": \"Check out these awesome deals!\",\"url\":\"www.amazon.com\" }}"
}
【问题讨论】:
标签: java android ios push-notification amazon-sns