Questions tagged [chrome-gcm]

Google Cloud Messaging for Chrome (GCM) is a service for signed-in Chrome users that helps developers send message data from servers to their Chrome apps and extensions.

Google Cloud Messaging for Chrome (GCM) is a service for signed-in Chrome users that 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 handles all aspects of queueing and delivering messages. To use the service, you must agree to the Google Cloud Messaging for Chrome API Terms of Service.

Messages must conform to these constraints:

Maximum payload length: 256 bytes

Maximum subchannels: 4

Maximum API requests per day: 10,000

Google API client libraries

You may use the REST interface defined here to access Google Cloud Messaging for Chrome from your application. We also offer Google API client libraries for a number of popular programming languages that can be used to access the API. For more information, see Google APIs Client Libraries.

Insert method

The gcm_for_chrome.messages.insert method sends a message to your app or extension user.

Authentication

Authentication is required to send messages to users. Using OAuth 2.0 for Web Server Applications describes this in greater detail.

URL

The URL used to obtain access to the GCM for Chrome service: https://accounts.google.com/o/auth2/auth.

78 questions
0
votes
1 answer

How can I specify time limit to a chrome push notification

I used Service Worker to send Push Notifications to chrome browser. I used below code to receive notification from server var url = "path/to/your/json/file/json-data.php?param="+Math.random(); self.addEventListener('push', function(event) { …
Java4you
  • 576
  • 2
  • 10
  • 20
0
votes
1 answer

GCM: Message sent on a topic does not reach the browser

My setup include a webapp, a backend server and an android app. I want to be able to chat between my android app and webapp. Init: Android app has subscribed to the topic /topics/chatGroupName Similarly on browser, I get the registrationToken and…
Vibgy
  • 577
  • 6
  • 15
0
votes
3 answers

How to display push notifications from my website?

I'm developing a simple website and I want my website to display push notifications to my users. It is something similar to how facebook.com displays notifications in chrome and firefox. I'm also working on an Android app that also supports push…
0
votes
1 answer

How to obtain registration token from GCM connection servers for Chrome app?

I'm working on a chrome app/extension that receives push notification using Google Cloud Messaging API. And the tutorial that I'm following is this. Everything is clear until the "Obtain GCM Registration Token" part. The code below explains a part…
0
votes
1 answer

My Gcmdemo project not working

I have used gcm demo code for viewing working of different features of gcm.But unfortunately it is showing some error.My client side is gcm quickstart code ,which is working finely,successfully sent notification using command code(gcm sender) .But…
coder
  • 9
  • 2
0
votes
1 answer

Is it possible not to resend GCM message?

I'm writing an android app where it forwards every notification on the device to GCM, which then subsequently sends to the registered chrome extension. Everything works fine except when my extension go offline for a while then back online, it will…
Leo Chen
  • 969
  • 1
  • 11
  • 25
0
votes
1 answer

PHP 500 internal server error when calling a php function

I have a problem lately I have created a function in my php file, and I am trying to call the function from the same file but when I call it i just get 500 internal server error. function messageThem($match, $message) { if(isset($match) &…
0
votes
1 answer

Chrome extension message between users

Is it possible to send messages between users directly without a server in Chrome extensions (P2P)? Or does it require a server (NodeJS, for example)? Maybe use Google Cloud Messaging, I do not understand the logic and work (official example…
0
votes
1 answer

Will GCM work in a normal HTML+JavaScript page?

I know the GCM push notification works inside a Google Chrome Extension/App and I tested it and working fine. But, will Google Push Notification work on in a normal HTML+Javascript page without any extension programming?
Dickens A S
  • 3,824
  • 2
  • 22
  • 45
0
votes
0 answers

Python-gcm issue with no response from GCM server

I am currently trying to finish implementing Android push notifications with python-gcm and am running into issues where I am not getting a response from the GCM server when I push the notifications. I have verified that I am getting the device_id,…
parchambeau
  • 1,141
  • 9
  • 34
  • 56
0
votes
0 answers

invalid channel id error in gcm chrome when trying to send message

I'm developing a chrome extension to receive messages from Gcm push services. I developed the extension to get the channel id and I have the php code to send the message to gcm server. The php code is returning error from gcm server like…
0
votes
1 answer

How many http socket connections does Google Cloud Messaging provide?

I'm using GCM to send messages from my (3rd Party) application to android app. I want to know how many different instances of my 3rd party application I can run with the same Project Credentials. Thanks in advance,
0
votes
2 answers

Google Cloud Messaging for Chrome - a received message is not shown as a popup

I downloaded Google push-sample-app code, removed the key from the manifest, uploaded the app to the Chrome Web Store, then installed it in Chrome from the Web Store. Now chrome://extensions/ lists the app as "Enabled", with "Inspect views:…
0
votes
0 answers

GCM chrome notifications not being received

I am developing a chrome extension to which I was pushing notifications so far successfully from my server. However, the notifications suddenly stopped working. I can see that my POST to https://www.googleapis.com/gcm_for_chrome/v1/messages is…
Gaurav
  • 1,466
  • 3
  • 17
  • 24
0
votes
0 answers

Best way to send chrome extension channel id to web application

I am writing a chrome extension that will receive messages from my application. I have managed to write code to retrieve the push messaging channel id in my extension. Now I need to send this channel id to my application and link it to an account so…
Gaurav
  • 1,466
  • 3
  • 17
  • 24