App Engine的连接Android应用 [英] App engine connected Android app
问题描述
问题与连接的Android应用项目为谷歌的Eclipse插件的新的App引擎?这是在Google网上显示的大爸爸样品I / O 2011年我的示例项目编译和Android应用程序似乎正常工作,并与服务器注册。然而,当我从服务器发送一个消息,我得到以下几点:样本项目有问题。 Android的出现很好地工作,并与服务器和C2DM服务器注册了,但是我无法发送消息。
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.
另外值得注意的服务器上的是一个c2dmconfig数据存储对象。它拥有的authToken和c2dmUrl领域。该的authToken有一个道理,但是c2dmUrl为NULL。我怀疑这是我的问题所在,但不知道如何解决它。
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.
感谢帕特里克
推荐答案
我被知道同样的事情,如果c2dmUrl被空出了问题发现了这个问题。这似乎是,这不是一个问题,虽然。如果你看一下C2DMConfig(所引用的实体),有一个名为getC2DMUrl功能。在这里,它是:
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:
public String getC2DMUrl() {
if (c2dmUrl == null) {
return DATAMESSAGING_SEND_ENDPOINT;
} else {
return c2dmUrl;
}
所以空是该支持的值。如果没有指定特定的URL时,它只是它返回到默认值。
So null is a supported value for this. If a specific URL isn't specified, it simply returns it to the default.
这篇关于App Engine的连接Android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!