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
12
votes
2 answers

Rate Limit Exceeded error when using Google Cloud Messaging API

When using the Google Cloud Messaging API to send messages between a backend server and an Android/Chrome client, the backend server can, at times, receive a rate limit exceeded response code. This code is “DeviceMessageRateExceeded” for a HTTP…
PaulR
  • 3,223
  • 1
  • 21
  • 32
11
votes
7 answers

PushManager subscription promise never fulfill nor reject

I am currently facing an issue with some Chrome (Chromium) version where the PushManager.subscribe promise from a ServiceWorker stays in a pending state. The code itself is pretty simple : return serviceWorkerRegistration.pushManager.subscribe({ …
Arturo
  • 213
  • 1
  • 3
  • 12
10
votes
1 answer

GCM registration id in Service Worker in Push Notification for chrome

I am able to send push notification and in service worker i am making a service call i just to want to send GCM registration id with that service call. How to get registration id or subscription id in service worker here is my code…
5
votes
2 answers

How to get registered into GCM topics from javascript (for Chrome)

Here is a nice documentation on how to implement Google Cloud Messaging (GCM) in Chrome. But I do not found any reference here or anywhere how to subscribe to a topic using javascript (for Chrome). Here I have found a reference how to do the task…
5
votes
1 answer

Service Workers from an iframe for Chrome GCM notifications for web

I want to subscribe/ unsubscribe to a service worker to get Chrome GCM Notifications on web through an iframe. I have a working prototype which works fine while opening it directly on the browser and also from window.open javascript pop up. But it…
user3895143
  • 69
  • 1
  • 4
4
votes
0 answers

gcm send and get push payload data with web (chrome)

I try send data to gcm and in client side receive it. every things is work and push is receive but data filed is null, try with postman like this : URL: https://android.googleapis.com/gcm/send Headers: Authorization: key= Content-Type:…
Reza Mazarlou
  • 2,986
  • 4
  • 22
  • 31
4
votes
0 answers

How to set cookie using JavaScript after fetching API request in GCM Service Worker?

I have successfully implemented GCM and ServiceWorkers to receive push-notification. My problem Whenever there is a SOS update, I am sending a HTTP request to gcm-http which then shows up a normal notification on Google Chrome but without any…
4
votes
3 answers

iOS Web notifications supported?

Does any browser in iOS support push notifications similar to Chrome on Android? Google seems to mention it in their GCM presentation video but I can't find any information about it.
3
votes
1 answer

Web Push vapid key generation logic

I have multiple https domains for sending web push notifications. But i will send web push notification from one server. I know why it is use and i read some documents about it. But i didn't see anything about this approach. I generated vapid key…
Murat Karagozgil
  • 178
  • 1
  • 2
  • 13
3
votes
0 answers

Ruby - Web push notification with encrypted payload and registration_ids using gcm

I want to send web push notification to my clients using gcm. There are many libraries for many languages to encrypt the payload. I use ruby Webpush gem for encrypt the payload and send the notification. As far as I see this library encrypts the…
Aref Aslani
  • 1,560
  • 13
  • 27
3
votes
2 answers

Push Notifications with data on push Event

I am trying to push notifications using GCM,able to show notifications with hard coded data or message on Push Event.But when I tried to push custom messages using data object as Json,Push event is triggering but ,data object always shoeing as…
3
votes
2 answers

How to play audio when received push notification in service worker chrome ?

I want to play audio like whatsapp web push notification or telegram web notification. I already able received push notification in service worker, the problem is how to play audio when push notification received ? I already read the documentation…
3
votes
1 answer

GCM + XMPP + Upstream Messages + Ruby on Rails

Use case: Android devices cannot contact Ruby On Rails server directly (it is behind firewall) and I cannot have a Internet server to receive requests directly. I need to have internal Rails server to retrieve messages from Android devices and…
3
votes
1 answer

Not able to load data URL for GCM push notification for chrome in 'notificationclick' event

While working on GCM push notification for Chrome, I have set up push notifications for when a service worker receives a push event for GCM. I am launching a service call. That service returns a data object in which I have a URL which I want to open…
Yogendra
  • 2,139
  • 3
  • 14
  • 27
3
votes
1 answer

ServiceWorker and Push Notification Payload

Community: ServiceWorker is a great advance technology in terms of cache managment, but I have some questions associated with other operations such as: Push Notification: I made a GCM integration (Google Clud Message) and NodeJS, following this…
1
2 3 4 5 6