【问题标题】:Could not get the message from cloud endpoints starter template to android device无法从云端点启动器模板获取消息到 android 设备
【发布时间】:2014-11-24 12:59:22
【问题描述】:

我正在使用谷歌教程https://developers.google.com/eclipse/docs/endpoints-androidconnected-gae 用于谷歌应用引擎安卓连接应用。 我做了教程中所说的一切,但无法从云端点启动模板获取消息,一段时间后它给了我错误:

java.io.IOException:无法获取 URL:http android.googleapis.com/gcm/send,错误:接收到针对 URL https android.googleapis.com/gcm/send 执行 http 方法 POST 的异常:连接重置

还搜索/查看了所有相关问题,但我不知道为什么它不起作用,请帮忙!

【问题讨论】:

    标签: android google-app-engine google-cloud-messaging


    【解决方案1】:

    好的,我自己找到了解决方案,我将答案发布给有同样问题的人。

    问题出在注册活动中的 QueryMessagesTask 中。线程只启动一次,仅此而已。 将 QueryMessagesTask 移动到按钮单击侦听器功能后,一切正常。我正在从云端点启动模板获取消息。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-28
      • 2017-08-01
      • 1970-01-01
      • 2022-01-14
      • 2017-05-14
      • 2016-10-03
      相关资源
      最近更新 更多