![]() Client Side : How to use Google Cloud Messaging for Chrome APIġ) Download the extension source code and unzip it.Ģ) manifest.json contains "permissions": [ Serve scripts for getting Refresh Token : Server Scripts. Now you can send push message to chrome by accessing the link: Send Push Message ![]() Once the app is launched, you will see a dialog window with Channel ID. To see the functionality install this extension: Install ExtensionĪfter extension is installed, Go to webpage Install Extension and Click on “Launch App”. Google provided Cloud Messaging (GCM) API for Chrome for free with a daily limit of 10,000 requests/day.Ībove image explains how the push messaging works.ġ) Chrome extension gets a Channel ID from Chrome Run-timeĢ) After receiving Channel ID, your extension sends the channel ID to your web server.ģ) Using GCM API, you can send a message to chrome browser which will queued in GCM Server.Ĥ) GCM server sends your message to Chrome Run-time.ĥ) Chrome Run-time forwards the message to your extension. ![]() Using Google Cloud Messaging for Chrome API, you can send push messages to all the chrome browsers using your
0 Comments
Leave a Reply. |