

Using GCM, maximum 4kb of payload can be sent in a notification. A notification is a small piece of information.On an event it will send a notification to an android application and vice-versa. We can use GCM as a notification engine.In this android tutorial, I will walk you through setting up push notification setup between an application server and an Android mobile application using Google cloud messaging (GCM) API. Push and pull are two types of notifications using which messages are transferred. Mobile devices’ resources should to be used wisely as they are scarce. Let us consider an email android application, it is not efficient to have the application ping the server to check for updates regularly. This is one of the most important arsenal in an Android developer’s armory. Google cloud messaging (GCM) is an Android platform API provided by Google for sending and receiving push notifications to and from an Android application.

Last modified on September 7th, 2014 by Joe.
