Google's sample for Google Cloud Messaging