Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the BSD License.
©2012 Google
| Description: | Use chrome.pushMessaging to send message data
to app or extension users. |
| Availability: | Google Chrome 24 |
| Permissions: | "pushMessaging" |
| Learn more: | Google Cloud Messaging for Chrome; API Reference for GCM service |
Retrieves the channel ID associated with this app or extension. Typically an app or extension will want to send this value to its application server so the server can use it to trigger push messages back to the app or extension. If the interactive flag is set, we will ask the user to log in when they are not already logged in.
The callback parameter should specify a function that looks like this:
function(object channelId) {...};