我使用百度创建了推送通知。它通过百度控制台运行良好,我在我的 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.
关于android - 是否有任何特定原因使用亚马逊 SNS 而不是直接百度服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33451482/