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 do I listen for Firebase Cloud Messaging messages in the background in a Google Chrome Extension?

I have a Google Chrome Extension that listens for GCM messages in a background script via chrome.gcm.onMessage.addListener. Our provider is planning to upgrade their infrastructure to use the latest Firebase Cloud Messaging which is no longer…
0
votes
0 answers

GCM project cannot connect to FCM host

I am trying to ensure that my GCM client application can receive downstream messages from my new FCM project to ensure backward compatibility. I know google says it should work and several people have commented that it is successful but I have to…
0
votes
1 answer

Are multiple gcm_sender_ids mandatory for multiple site web push?

We are a company that operates about 500 large and small sites. (Self, outsourcing ...) We are trying to attach a notification to these sites. I know that when I sign in with my Google Developer Center account and get the gcm service, I get one…
0
votes
1 answer

GCM APIs not delivering push notifications

We are trying to send some push notifications using the GCM API to Chrome users. Until 3-4 days back, the delivery rate of the notifications to the end users were about 60-70%. We have a timeout of 1 day, so people who did not come online for…
0
votes
1 answer

Push notification codelab Uncaught SyntaxError: Unexpected identifier in curl request

I am following this tutorial https://developers.google.com/web/fundamentals/getting-started/codelabs/push-notifications/#send_a_request_from_the_command_line_for_fcm_to_push_a_message And when I do this curl --header "Authorization:…
0
votes
1 answer

show push notification only when app is not running in cordova android

I have a push notification integrated with GCM It's working fine. Whenever push notification comes then it redirected to specific page when user outside the application. But whenever user inside the application then it also redirect the specific …
user4948644
0
votes
1 answer

Chrome notification with rails - 400 UnauthorizedRegistration

I`m using Rails and https://github.com/zaru/webpush gem and have configured things according to this guide https://rossta.net/blog/web-push-notifications-from-rails.html I manage to register ServiceWorker and get subscription. I save it like this…
0
votes
1 answer

gcm push notification: not showing actual message reopen the browser

Gcm push notification message is sending properly to endpoints when browser is open :Notification messages which are in json file. serviceWorker.js 'use strict'; self.addEventListener('install', function(event) { self.skipWaiting(); …
user1969316
0
votes
1 answer

send push to chrome and encryption payload data in php

I want send push to web(chrome) with php and I use https://github.com/Minishlink/web-push lib for this work, but I don't know how to generate or give $userPublicKey and $userAuthToken. code like this : use Minishlink\WebPush\WebPush; $endpoint =…
Reza Mazarlou
  • 2,986
  • 4
  • 22
  • 31
0
votes
0 answers

Cannot initialize state with service worker in GCM for web application in Chrome

I am developing an Web Application that uses GCM for push notifications. I am following this documentation. I am having problem with initializeState function in docs. This is how I added service worker script: I just created a service-worker.js…
0
votes
1 answer

chrome extension offline gcm messages not received

I have a simple extension running in background mode (basically the sample chrome client gcm code). When I send a gcm message to my extension while chrome is running the message is received fine. If I then close chrome, send gcm messages to the same…
0
votes
2 answers

Google Chrome Push Notification

I am implementing chrome push notification for my website users. Which I am able to do successfully. I have two question ? 1) how to get the previous subscription id whenever i block the notification from browser setting. I have to remove the…
0
votes
1 answer

can I use google cloud message for this type of home automation purposes

hi we are working on a home automation project which can controll over mobile app so can I use google cloud message for this type of home automation purposes ? and also does the gcm requires a sim card to work ?
Vipin
  • 1
0
votes
1 answer

Serverside error 'invalidRegistration' with GCM (Google Cloud Messaging)

When I run the GCM client-side code,I got error as "invalidRegistration". I checked with the referedpage.But still unable to get success as 1.The API key provided by JSON file and Server API Key which I got it when the configuration process are…
Jasper
  • 73
  • 5
0
votes
1 answer

For each sender ID, GCM allows 1000 connections in parallel

Refer https://developers.google.com/cloud-messaging/ccs#connecting I want to have a XMPP based server for GCM. I am unable to understand "For each sender ID, GCM allows 1000 connections in parallel" Here What does connection mean ? is it the…
user2746732
  • 119
  • 1
  • 9