App engine connected Android app

假装没事ソ 提交于 2020-03-04 07:16:00

问题


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


回答1:


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;
}

So null is a supported value for this. If a specific URL isn't specified, it simply returns it to the default.



来源:https://stackoverflow.com/questions/5995277/app-engine-connected-android-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!