【问题标题】:Sending a push notification to android device using amazon sns使用 amazon sns 向 android 设备发送推送通知
【发布时间】:2016-08-10 01:38:48
【问题描述】:

我已经按照http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html#registration-id-gcm 给出的说明进行操作。但是我创建的应用没有收到任何通知。

谁能告诉我。

【问题讨论】:

  • 也许提供一些您尝试过的示例代码以及您认为不起作用的特定内容?否则,不确定我们能否为您提供帮助。
  • 嗨,我在 android studio 中创建了一个新项目,导入 snssamples 文件夹并提供必要的变量。
  • 字符串registrationId = "Xxxxxxxxxxxxxxxxxxxxxxxxxxxx"; String serverAPIKey = "AIXXxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; String applicationName = "AppName"; snsClientWrapper.demoNotification(Platform.GCM, "", serverAPIKey, registrationId, applicationName, attributesMap);

标签: google-cloud-messaging amazon


【解决方案1】:

你有:

  • 安装了 Android SDK
  • 安装了 Google Play 服务 SDK
  • 安装了 Android 支持库包
  • 已向 GCM 注册您的应用程序以接收推送通知消息 (您有一个注册 ID)

如果没有,请从 http://docs.aws.amazon.com/sns/latest/dg/mobile-push-gcm.html 开始。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多