How to connect appengine application running on local server with GCM server

佐手、 提交于 2019-12-24 11:34:37

问题


I have created client-server project to figure out GCM(Google Cloud Messaging) service. It is working well on my first try when i deployed :--

1)Android App to my device.

2)Appengine App to Appengine server.

But i am missing one thing what if i need to make changes to project mainly on appengine app. Every time i need to deploy to appengine server to test it whether its working properly or not. Its takes lots of time.

How to test LOCAL appengine server app (as server) with android DEVICE (as client) not emulator....?? I mean how aappengine application running on local server connects to GCM server (somewhere on WWW) resulting push notification on my android device...


回答1:


To send messages to the GCM server you don't even need to run a local server. Any application running on your local computer that can connect to the internet and send an HTTP POST request can send a message to the GCM server, which will be sent to your device (assuming you use the correct registration ID).

You only need a local server if you want your Android app to send the registration ID to your local computer.

This means you can easily test most of your server code locally without setting up a local server.



来源:https://stackoverflow.com/questions/15533741/how-to-connect-appengine-application-running-on-local-server-with-gcm-server

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