Title: bug(service-worker): ClickActions only working (reliable) for `default` · Issue #52172 · angular/angular · GitHub
Open Graph Title: bug(service-worker): ClickActions only working (reliable) for `default` · Issue #52172 · angular/angular
X Title: bug(service-worker): ClickActions only working (reliable) for `default` · Issue #52172 · angular/angular
Description: Which @angular/* package(s) are the source of the bug? service-worker Is this a regression? Yes Description I'm sending the following notification via WebPush to the Angular SW: { "notification": { "title": "Title", "body": "Body", "icon...
Open Graph Description: Which @angular/* package(s) are the source of the bug? service-worker Is this a regression? Yes Description I'm sending the following notification via WebPush to the Angular SW: { "notification": {...
X Description: Which @angular/* package(s) are the source of the bug? service-worker Is this a regression? Yes Description I'm sending the following notification via WebPush to the Angular SW: { "notific...
Opengraph URL: https://github.com/angular/angular/issues/52172
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug(service-worker): ClickActions only working (reliable) for `default`","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nservice-worker\n\n### Is this a regression?\n\nYes\n\n### Description\n\nI'm sending the following notification via WebPush to the Angular SW:\r\n\r\n```\r\n{\r\n\t\"notification\": {\r\n\t\t\"title\": \"Title\",\r\n\t\t\"body\": \"Body\",\r\n\t\t\"icon\": \"/assets/images/logo/logo-192x192.png\",\r\n\t\t\"badge\": \"/assets/images/logo/logo-72x72.png\",\r\n\t\t\"data\": {\r\n\t\t\t\"onActionClick\": {\r\n\t\t\t\t\"default\": {\r\n\t\t\t\t\t\"operation\": \"navigateLastFocusedOrOpen\",\r\n\t\t\t\t\t\"url\": \"/link1\"\r\n\t\t\t\t},\r\n\t\t\t\t\"link2\": {\r\n\t\t\t\t\t\"operation\": \"navigateLastFocusedOrOpen\",\r\n\t\t\t\t\t\"url\": \"/link2\"\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\t\"actions\": [\r\n\t\t\t{\r\n\t\t\t\t\"action\": \"link2\",\r\n\t\t\t\t\"title\": \"Link 2\"\r\n\t\t\t}\r\n\t\t]\r\n\t}\r\n}\r\n```\r\n\r\nThe default action always works: when pushing the notification, the last focues (or a new) window opens and navigates to the relative url. But when clicking the action button, the application only navigates, if it is opened / running already. If there is no active instance, the notification just closes and nothing happens.\r\n\r\nAfter checking some more, I've noticed that it works with Chrome on Windows but doesn't on Android (Galaxy Flip, Android 13, Chrome 117.0.5938.153)\n\n### Please provide a link to a minimal reproduction of the bug\n\n_No response_\n\n### Please provide the exception or error you saw\n\n_No response_\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nChrome on Windows WORKS!\r\nChrome (117.0.5938.153) does **NOT** work on Android (Galaxy Flip, Android 13)\r\n\r\nAngular CLI: 16.0.0\r\nNode: 16.20.0\r\nPackage Manager: npm 8.5.4\r\nOS: win32 x64\r\n\r\nAngular:\r\n...\r\n\r\nPackage Version\r\n------------------------------------------------------\r\n@angular-devkit/architect 0.1600.0 (cli-only)\r\n@angular-devkit/core 16.0.0 (cli-only)\r\n@angular-devkit/schematics 16.0.0 (cli-only)\r\n@schematics/angular 16.0.0 (cli-only)\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/angelaki","@type":"Person","name":"angelaki"},"datePublished":"2023-10-11T21:51:46Z","url":"https://github.com/angular/angular/issues/52172"}
| 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:a4ea1364-39c0-152b-0e10-0427817a148a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AD48:3C21B:10FD5DA:15D4DB1:6B0107AF |
| html-safe-nonce | e6fbf490b5ac30fa1c296f6a5bdf29c04511c5b21828fb7f83cc52e831058598 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDQ4OjNDMjFCOjEwRkQ1REE6MTVENERCMTo2QjAxMDdBRiIsInZpc2l0b3JfaWQiOiI0MzA3NDExNDY2Mjk2MzgwNjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 51bddafb6dfa11f999eae5f151747f51b0aef29b2fe65c1954d2b06d0411384a |
| hovercard-subject-tag | issue:1938798006 |
| 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/52172/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e727f7ac8308cd109c8014a7358b3f6579809b4833736e7db83166ef56e1a5ba/angular/angular/issues/52172 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e727f7ac8308cd109c8014a7358b3f6579809b4833736e7db83166ef56e1a5ba/angular/angular/issues/52172 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? service-worker Is this a regression? Yes Description I'm sending the following notification via WebPush to the Angular SW: { "notification": {... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | angelaki |
| 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