Google Rolls Out Push Notifications For Chrome and Chrome OS

Posted May 10, 2013

is now making it possible for developers to set-up push notifications on web applications served through Chrome.  Google announced Google Messaging for Chrome on Thursday.  According to Google’s Developer page, the service “helps developers send message data from servers to their Chrome apps and extensions. The service is intended to wake up an app or extension, and/or alert a user. For example, calendar updates could be pushed to users even when their calendaring app isn’t open.”  The service can also be used for stock price alerts or news items.

Developers that want to use the service have to utilize their own servers to send a message to Google’s GCM server.  That server communicates with Chrome, which communicates with the developers’ Chrome extension or Chrome app.  The appropriate action takes place from there like popping up a notification or opening a web page.  This method here prevents web apps from constantly polling servers to see if an alert is ready, which wastes network usage and battery power.

“Your message is…delivered in near real time to Chrome,” said Google product manager Mark Scott in a blog post.  “This makes your event page wake up (if it?s not already running), and the message is delivered to your chrome.pushMessaging.onMessage listener.”  This service is parallel to Google Cloud Message for Android.

Below is a graph of how it works: