Developer Group Perugia Message push Request for a given transaction is initiated by a central server Clients need to register themselves to a publisher Clients are in idle state
Developer Group Perugia GCM features Is a free Google service (no quotas) Helps developer send data from servers to their Android applications and upstream messages from user's device back to the cloud Abstraction of all queuing problems Android applications don't need to be up and running to receive messages
Developer Group Perugia More technical details Requires Android > 2.2 (Froyo) Google Play Store must be installed Integration with Google Play Services It's not required for you to deploy your app on Google Play Store Google account is required if Android < 4.0.4
Developer Group Perugia Register your app GCM doesn't provide anything else than a simple raw communication protocol You must provide an initial registration step (only the first time) You must have a receiving handler on your client You must have a sending handler on your server
Developer Group Perugia GCM message Lightweight message (max 4kb payload) It can be just an alert to our app (send-to-sync) It can contains some data on the payload (message with payload)
Developer Group Perugia Suppose: Users of my application have more than one device I want to trigger a message push to all user's devices I don't want to query and find all device IDs
Developer Group Perugia Seamless multi-device messaging Map a single user to a notification_key, which you can then use to send a single message to multiple devices owned by the user
Developer Group Perugia Very advanced feature 1. When new contents are available on our server, we ask to GCM server to send a push message to all user's devices 2. The GCM server checks all registered devices to find the last one in active state 3. It will send the push message 4. It compare the position of this device with other user's devices and if they are too far away, the message is not delivered now
Developer Group Perugia Emanuele Palazzetti :: Google Developer Group @palazzem evonove.it/authors/palazzem github.com/emanuele-palazzetti/AndroidHappyChat