This is an example of implementation for the client-side of a Google Cloud Messaging implementation.