App Engine 连接 Android 应用程序
谷歌 Eclipse 插件的新应用程序引擎连接 Android 应用程序项目有问题吗?这是 goolge i/o 2011 上展示的“Big Daddy”示例。我的示例项目已编译,Android 应用程序似乎工作正常并注册到服务器。但是,当我从服务器发送消息时,我收到以下消息:示例项目有问题。 Android 似乎工作正常并注册到服务器和 c2dm 服务器,但我无法发送消息。
服务器上还值得注意的是 c2dmconfig 数据存储对象。它具有 authToken 和 c2dmUrl 字段。 authToken 有一个令牌,但 c2dmUrl 为 NULL。我怀疑这就是我的问题所在,但不知道如何解决。
谢谢帕特里克
Problem with the new App engine connected android application projects for the google eclipse plugin? This is the "Big Daddy" sample shown at goolge i/o 2011. My sample project compiles and the android app appears to work fine and registers with the server. However when I send a message from the server I get the following: Having issue with sample project. Android appears to work fine and registers with the server and the c2dm server, however I cannot send a message.
Also of note on the server is a c2dmconfig datastore object. It has fields for authToken and c2dmUrl. The authToken has a token, however the c2dmUrl is NULL. I suspect this is where my problem lies, but not sure how to fix it.
Thanks Patrick
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我通过想知道同样的事情来发现这个问题,如果 c2dmUrl 为空是一个问题。不过,这似乎不是问题。如果您查看 C2DMConfig(您正在引用的实体),就会发现有一个名为“getC2DMUrl”的函数。如下:
因此 null 是该值的受支持值。如果未指定特定 URL,它只会将其返回为默认值。
I found this question by wondering the same thing, if the c2dmUrl being null is a problem. It would seem that this is not an issue though. If you look at the C2DMConfig (the entity that you are referencing), there is a function called "getC2DMUrl". Here it is:
So null is a supported value for this. If a specific URL isn't specified, it simply returns it to the default.