Title: Service Worker: Can't display push notification · Issue #19488 · angular/angular · GitHub
Open Graph Title: Service Worker: Can't display push notification · Issue #19488 · angular/angular
X Title: Service Worker: Can't display push notification · Issue #19488 · angular/angular
Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x ] Bug report [ ] Feature request [ ] Documentation issue or request [ ] Support request => Please do not submit support request her...
Open Graph Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x ] Bug report [ ] Feature request [ ] Documentation issue or request [ ] Support request => ...
X Description: I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x ] Bug report [ ] Feature request [ ] Documentation issue or request [ ] Support request...
Opengraph URL: https://github.com/angular/angular/issues/19488
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Service Worker: Can't display push notification","articleBody":"## I'm submitting a...\r\n\u003c!-- Check one of the following options with \"x\" -->\r\n\u003cpre>\u003ccode>\r\n[ ] Regression (a behavior that used to work and stopped working in a new release)\r\n[x ] Bug report \u003c!-- Please search GitHub for a similar issue or PR before submitting -->\r\n[ ] Feature request\r\n[ ] Documentation issue or request\r\n[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n\u003c/code>\u003c/pre>\r\n\r\n## Current behavior\r\n```\r\nUncaught (in promise) DOMException: Failed to execute 'postMessage' on 'Client': PushMessageData object could not be cloned.\r\n at clients.forEach.client (https://ngsw.surge.sh/ngsw-worker.js:2199:44)\r\n at Array.forEach (\u003canonymous>)\r\n at Driver.broadcast (https://ngsw.surge.sh/ngsw-worker.js:2199:17)\r\n at \u003canonymous>\r\n```\r\n\r\n## Expected behavior\r\nShow web push notification\r\n\r\n## Minimal reproduction of the problem with instructions\r\nClick \"Subscribe to push\" and wait some seconds. Or use \"Push\" on \"Application\" tab of DevTools.\r\nMost likely this is because the object passed to `postMessage`has methods, not only the properties. Methods have to be removed:\r\nhttps://stackoverflow.com/a/42376465\r\n\r\nCC: @alxhub \r\n\r\n## What is the motivation / use case for changing the behavior?\r\nFix the bug\r\n\r\n## Environment\r\n\r\n\u003cpre>\u003ccode>\r\nAngular version: 5.0.0.rc.0\r\n\u003c!-- Check whether this is still an issue in the most recent Angular version -->\r\n\r\nBrowser:\r\n- [x] Chrome (desktop) version 61\r\n \r\n\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/webmaxru","@type":"Person","name":"webmaxru"},"datePublished":"2017-09-29T22:20:50Z","url":"https://github.com/angular/angular/issues/19488"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fdca1258-7813-bddc-a228-043b35ec323b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96CE:31E99C:FC95A6:151EA45:6B0110B1 |
| html-safe-nonce | 341c017088df36ee5b814d2b64dcb19cc1a36b549d7e9d878c825e2d6ff89f8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkNFOjMxRTk5QzpGQzk1QTY6MTUxRUE0NTo2QjAxMTBCMSIsInZpc2l0b3JfaWQiOiIyNTU5ODE5NTAyNTU2NjE0ODMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 00489dd62d35652b17f4aebd90b0ebd9b5c9a5e8b4bfcead62ae98c70a93afac |
| hovercard-subject-tag | issue:261786687 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/19488/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2afdc34573c23cb8bff3c5d708c53727146d43302ed742a7bc707ffa13c8926d/angular/angular/issues/19488 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2afdc34573c23cb8bff3c5d708c53727146d43302ed742a7bc707ffa13c8926d/angular/angular/issues/19488 |
| og:image:alt | I'm submitting a... [ ] Regression (a behavior that used to work and stopped working in a new release) [x ] Bug report [ ] Feature request [ ] Documentation issue or request [ ] Support request => ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | webmaxru |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width