android - 是否有任何特定原因使用亚马逊 SNS 而不是直接百度服务

标签 android amazon-web-services push-notification amazon-sns baidu

我使用百度创建了推送通知。它通过百度控制台运行良好,我在我的 Android 手机上收到通知。 我必须使用百度提供的 SDK 创建一个 web 服务来从我的特定应用程序发送推送消息。我还有另一个选项,似乎在 Amazon SNS 下可用。它似乎是对百度、GCM 等的包装。

我怀疑与百度提供的 SDK 相比,使用 Amazon SNS 是否有任何具体优势?

最佳答案

tldr;

如果您只针对中国市场并且百度对您来说运作良好并且您的所有代码设置都可以与百度合作,那么留在百度

关于 Amazon SNS 的其他几点需要澄清

Baidu cloud push如果您想在中国市场发送通知,我们提供非常好的服务

Amazon SNS另一边是一个更大的产品,作为 Mobile Push Notifications 的一部分Amazon 将作为一个抽象层,您可以选择您想要的实现方式。

它有以下优点:

  • 您不受百度范围的限制,因此您可以在中国市场发送通知,但不仅如此,如果/当需要向国外发送通知时,无需重写整个内容会容易得多
  • 您可以使用相同的代码并快速更改推送通知的提供商,以防提供商在给定时间不工作(停机操作)或者情况发生变化而您对新条件不满意。

You send push notification messages to both mobile devices and desktops using one of the following supported push notification services:

  • Amazon Device Messaging (ADM)
  • Apple Push Notification Service (APNS) for both iOS and Mac OS X
  • Baidu Cloud Push (Baidu)
  • Google Cloud Messaging for Android (GCM)
  • Microsoft Push Notification Service for Windows Phone (MPNS)
  • Windows Push Notification Services (WNS)

The following figure shows an overview of how Amazon SNS is used to send a direct push notification message to a mobile endpoint.

enter image description here

关于android - 是否有任何特定原因使用亚马逊 SNS 而不是直接百度服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33451482/

相关文章:

iphone - 推送通知

c# - Mono for Android 库中的 Resources 文件夹

amazon-web-services - AWS EC2 websocket 通过 https ERR_SSL_VERSION_OR_CIPHER_MISMATCH

ios - 使用 Firebase 通知定位单个设备 (swift)

postgresql - 将 RDS Postgres 数据流式传输/逻辑复制到运动的最佳方式

json - Amazon AWS CLI 不允许在有效负载参数中使用有效的 JSON

c# - C# 中的 Firebase 云消息传递

android - 如何在 Android 中创建电子表格类型的显示?

java - Android:索引 0 无效,大小为 0。在哪里?

android - 呈现问题 :Binary XML file line #-1: No start tag found