Title: Process to allow transforming push notification before it is displayed · Issue #60609 · angular/angular · GitHub
Open Graph Title: Process to allow transforming push notification before it is displayed · Issue #60609 · angular/angular
X Title: Process to allow transforming push notification before it is displayed · Issue #60609 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? service-worker Description I appreciate the hooks for displaying push notifications already, but if I want to modify the content of the notification before showing ...
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? service-worker Description I appreciate the hooks for displaying push notifications already, but if I want to modify the con...
X Description: Which @angular/* package(s) are relevant/related to the feature request? service-worker Description I appreciate the hooks for displaying push notifications already, but if I want to modify the con...
Opengraph URL: https://github.com/angular/angular/issues/60609
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Process to allow transforming push notification before it is displayed","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\nservice-worker\n\n### Description\n\nI appreciate the hooks for displaying push notifications already, but if I want to modify the content of the notification before showing it, I don't think I have a way to do that without changing the worker. \n\nMy use case is in a web app testing the extent of E2EE - threat model assumes read-access to server db, client schedules a push notification, contents encrypted to the server, which schedules it when time comes. On receipt, client needs to be able to decrypt the content before passing to normal 'showNotification' flow. \n\n### Proposed solution\n\nThe simplest solution in my mind would be a callback that allows you to modify the notification payload before continuing to show it. Part of SwPush, though itd have to run when application is closed so Im not sure that would work. An even better solution would be to officially support extending the service worker module, as there are other issues with specific service worker niche use cases that could be solved by just supporting service worker extensions.\n\n### Alternatives considered\n\nManually updating service worker or adding custom service worker with importScripts. Fragile.","author":{"url":"https://github.com/ettubrute47","@type":"Person","name":"ettubrute47"},"datePublished":"2025-03-28T14:58:27Z","url":"https://github.com/angular/angular/issues/60609"}
| 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:a66d0509-99a0-0e02-db7e-5fbbc8d05088 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D45C:34DB8F:D9C90B:123B22C:6B0107B0 |
| html-safe-nonce | 64eec6ada7d5238d335485d002c1c3eaddf6b04df3019c247c352f759026c423 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENDVDOjM0REI4RjpEOUM5MEI6MTIzQjIyQzo2QjAxMDdCMCIsInZpc2l0b3JfaWQiOiI0MzAzMzY4MDg2MzIyNDgxMDcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 200ee2b16b8982cfe4e9679eb1593ad4e0f67ecd04e56c08785a6b0f4c8286d8 |
| hovercard-subject-tag | issue:2956411475 |
| 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/60609/issue_layout |
| twitter:image | https://opengraph.githubassets.com/58bf79fe2f5d45e1d77baee7f9f0e2ba21ba3544c7cbff884010371516bab8b8/angular/angular/issues/60609 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/58bf79fe2f5d45e1d77baee7f9f0e2ba21ba3544c7cbff884010371516bab8b8/angular/angular/issues/60609 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? service-worker Description I appreciate the hooks for displaying push notifications already, but if I want to modify the con... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ettubrute47 |
| 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