Issue metadata
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 descriptionSteps 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:
,
Mar 22 2016
Ian, could you take a look at this. It doesn't look like an issue with the ChromeGcmListenerService.
,
Dec 6 2016
,
Dec 7 2016
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.
,
Dec 7 2016
"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)
,
Dec 7 2016
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.
,
Jan 12 2017
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 |
|||||||||||||||||||||||
Comment 1 by rsgav...@chromium.org
, Mar 18 2016Owner: khushals...@chromium.org
Status: Assigned (was: Unconfirmed)