New issue
Advanced search Search tips

Issue 596158 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Website's GCM Notification not going through ServiceWorker's showNotification

Reported by j...@bebo.com, Mar 18 2016

Issue description

Steps to reproduce the problem:
1. Accepting Notification permissions for the website
2. Getting GCM push while Chrome is in the background

What is the expected behavior?
GCM push goes through web's service worker and show the notification with the given properties in showNotifications, no matter if Chrome is active or in the background.

What went wrong?
Notifications are not showed by the service workers. 
Instead, the Chrome seems to be showing the notification with the GCM data it receives. 
It is fine, except that click_action and icon(over http) are not supported. 

Did this work before? Yes Before Chrome 49 on Android

Chrome version: 50.0.2657.12  Channel: beta
OS Version: N
Flash Version:
 
Screenshot_20160318-114314.png
208 KB View Download
Screenshot_20160318-114358.png
2.3 MB View Download
Cc: tedc...@chromium.org
Owner: khushals...@chromium.org
Status: Assigned (was: Unconfirmed)
Cc: khushals...@chromium.org
Owner: iclell...@chromium.org
Ian, could you take a look at this.
It doesn't look like an issue with the ChromeGcmListenerService.
Components: Blink>ServiceWorker
Cc: iclell...@chromium.org
Components: -Blink>ServiceWorker UI>Notifications Blink>PushAPI
Labels: Needs-Feedback
Owner: ----
Status: Untriaged (was: Assigned)
jake: Is this still an issue in today's Chrome? I don't quite understand the bug report. "click_action" is not part of the ServiceWorkerRegistration.showNotification API. "icon" is.
"click_action" appears to be part of GCM notifications, not Service Worker notifications

(See https://developers.google.com/cloud-messaging/http-server-ref#notification-payload-support, now superceded by FCM: https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support)


Comment 6 by peter@chromium.org, Dec 7 2016

Cc: peter@chromium.org
Indeed - we don't support the GCM notification syntax. Instead, as a developer you can define your own data format which you can send with the push message in an encrypted manner.

https://developers.google.com/web/updates/2016/03/web-push-encryption

Please let us know if this is still an issue.

Comment 7 by awdf@chromium.org, Jan 12 2017

Status: WontFix (was: Untriaged)
Closing as it seems this is working as intended.

Please file a new bug if you believe there is still an issue after following the instructions linked in the previous comment.

Sign in to add a comment