Search code examples
androidgoogle-app-enginegoogle-cloud-messagingserver-pushevent-stream

How to push stream of events in Android app from Google App Engine


I am quite new to Android developpement and Google App engine stuff. I am still into processing the documentation and the tutorials about it.

I have a game concept for Android, based on a turn-by-turn battle for 2 players, but with very short turns (< 20 secs). For what I have understand this far, Google Cloud Endpoints allows to create a REST-like API.

Is there a way for the app to warn a client that the other player has played, and react accordingly ? Because of the "small" timer, one is not expected to leave the app for the during of the battle.

So far, I have found the Channel API, but it is not avaiable for Android clients.

Thank you in advance !


Solution

  • Google Cloud Messaging for Android is meant just for pushing from server to Android client. You will need the Messages with payload and handle it in your Android app.

    For high volumes of push messages, you should also consider keeping a dedicated live connection using Socket API