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

How can I see statistical result when i use Firebase FCM with http request

I am using FCM to do Mobile Push Notification. When I use firebase Notification console to push Notification, i can see every Notification statistics, but when I use http api to push Notification, I can't see statistical table. Is FCM have a way for…
James
  • 31
  • 1
2
votes
2 answers

Chome push notifications disappearing after a couple seconds

I am building a system to send web push notifications with chrome. When someone receives my push notification on their desktop PC they see the notification for about 10 seconds. If they don't click on the notification it will then disappear after…
2
votes
2 answers

GCM 401 Unauthorized - Where to get the "right" Server Key?

I already tried so many solutions there to solve it. Have a lot of unsolved questions here (on stackoverflow) finding for same solution. When I call: curl --header "Authorization: key=MY_KEY" --header "Content-Type: application/json"…
Tiago Gouvêa
  • 15,036
  • 4
  • 75
  • 81
2
votes
1 answer

GCM Timeout & Connection Refused after 5000 push notifications sent

I need to sent 500 push notifications per second across gcm service. Unfortunately unlike chrome49 I have to encrypt message for every chrome50 customer, encryption keys are indicated in the request header. After above 5000 messages sent i receive…
Anton Rey
  • 68
  • 7
2
votes
1 answer

Chrome based GCM push notification native popup detection

I have a requirement to change text message on site while chrome native popup comes up to allow for getting chrome based GCM push notifications from the site. see screenshot. As i know native popup only come first time while enable notification…
Yogendra
  • 2,139
  • 3
  • 14
  • 27
2
votes
0 answers

phonegap push notification without GCM google cloud messaging

It is possible to implement notification push in phonegapp without passing to google cloud messaging? I could find just the plugins that use gcm like this: https://github.com/phonegap/phonegap-plugin-push exist a different solution without passing…
2
votes
2 answers

Can service-worker stop push notification sent by GCM api?

In my current architecture, I submit push notifications using the GCM API. This triggers a 'push' event in the service worker. The service worker then adds some data to the notification. If the service worker is unable to add the data, due to some…
2
votes
0 answers

How to show date time in notification of chrome GCM push notification

I want to list more data like date, time in notification of chrome GCM push notification. As shown in my code here: self.addEventListener('push', function(event) { console.log('Received a push message from local', event); var title = 'My…
Yogendra
  • 2,139
  • 3
  • 14
  • 27
2
votes
1 answer

GCM webpush in background

I implemented web push notifications. Steps to get a bug: Open website Subscribe for push notifications Send many pushes through gcm - all fine Close tab with site Send push and receive "double push" - first one is ok, second is "This site has been…
Dmitry Teplyakov
  • 2,898
  • 5
  • 26
  • 46
2
votes
1 answer

Push notification Chrome Mobile Ver 42+

I am trying a demo of push notification suggested by this article. https://developers.google.com/web/updates/2015/03/push-notificatons-on-the-open-web?hl=en and trying to run code from github…
vikrantx
  • 593
  • 5
  • 22
2
votes
2 answers

Need to call data from insecure URL for GCM push notification for chrome

I need to call an insecure (http://) URL to fetch data form service worker file for GCM push notification for chrome. Is this possible anyway?
Yogendra
  • 2,139
  • 3
  • 14
  • 27
1
vote
2 answers

How to pass project number to manifest.json

I am building a web push WordPress plugin and I want to pass project number from form input field to manifest.json file which is included in index.php as
1
vote
1 answer

How to unregister gcm in chrome extension

I used GCM to send notifications to user browsers. To register GCM service I used function registerCallback(registrationId) { if (chrome.runtime.lastError) { // When the registration fails, handle the error and retry the // registration…
1
vote
1 answer

How to send Chrome push notification to mulitple device

I want to send chrome push notifications to the registered user.I followed this link https://developers.google.com/web/fundamentals/getting-started/push-notifications/?hl=en to develop a basic push notification and it works fine. For now, I am…
Vamsi
  • 423
  • 1
  • 5
  • 19
1
vote
1 answer

GCM Chrome: Empty Data Response

i am currently integrating gcm in my web application, the subscription and the registration_id saving working, i get on the client also the response, when i trigger a message from Postman. So now i need to transfer the title and the message. i am…