【问题标题】:Amazon SNS duplicates push notificationAmazon SNS 重复推送通知
【发布时间】:2016-09-22 22:23:29
【问题描述】:

我正在通过 AWS 接口发送 SNS 推送,以下消息向我发送了两次推送,其中只有第二次推送是可扩展的,并显示多行文本。

 {
    "GCM": "{ \"notification\": { \"body\": \"test message test test test message
     test test test message test test test message test test test message test   
     testtest message test test\" } }"
}

有人可以帮帮我吗?

【问题讨论】:

    标签: android push-notification amazon-sns


    【解决方案1】:

    解决方案: 应用程序开发人员表示,它不准备以“通知”格式接收推送,并且由于行数的原因,这两个重复消息都与它有关。他们会通过调整应用来解决线条问题。

    【讨论】:

    • 那么开发者改变了什么?
    • 他们调整了应用程序以正确读取收到的 sns 推送类型。有两种类型:通知和数据。在我们的例子中,这是不正确的。该应用程序正在读取数据,但 sns 消息类型为通知。更多详细信息:developers.google.com/cloud-messaging/concept-options
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-01
    • 1970-01-01
    相关资源
    最近更新 更多