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

I created a client-server project to define the GCM service (Google Cloud Messaging). It works well from my first attempt when I deployed: -

1) Android application on my device.

2) Appengine App to Appengine server.

But I miss one thing if I need to make changes to the project mainly on the appengine app. Every time I need to deploy the appengine server, check it to see if it works correctly or not. It takes a lot of time.

How to test the LOCAL appengine server application (as a server) using the DEVICE android (as a client) is not an emulator .... ?? I mean, how the aappengine application running on the local server connects to the GCM server (somewhere on the WWW), resulting in a notification about my Android device ...

+1
google-app-engine google-cloud-messaging
source share
1 answer

To send messages to the GCM server, you do not even need to start the 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 (provided that you use the correct registration ID).

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

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

0
source share

All Articles