René's URL Explorer Experiment


Title: Service Worker Push requestSubscription error on SAFARI 12 · Issue #27889 · angular/angular · GitHub

Open Graph Title: Service Worker Push requestSubscription error on SAFARI 12 · Issue #27889 · angular/angular

X Title: Service Worker Push requestSubscription error on SAFARI 12 · Issue #27889 · angular/angular

Description: 🐞 bug report Affected Package The issue is caused by package @angular/service-worker Is this a regression? I don't know Description The swPush requestSubscription break on SAFARI browser 🔬 Minimal Reproduction import { Optional, Injectab...

Open Graph Description: 🐞 bug report Affected Package The issue is caused by package @angular/service-worker Is this a regression? I don't know Description The swPush requestSubscription break on SAFARI browser 🔬 Minimal ...

X Description: 🐞 bug report Affected Package The issue is caused by package @angular/service-worker Is this a regression? I don't know Description The swPush requestSubscription break on SAFARI browser 🔬 Mini...

Opengraph URL: https://github.com/angular/angular/issues/27889

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Service Worker Push requestSubscription error on SAFARI 12","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\nThe issue is caused by package @angular/service-worker\r\n\r\n### Is this a regression?\r\nI don't know\r\n\r\n### Description\r\nThe swPush requestSubscription break on SAFARI browser\r\n\r\n\r\n## 🔬 Minimal Reproduction\r\n```javascript\r\nimport { Optional, Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { SwPush } from '@angular/service-worker';\r\nimport { Observable } from 'rxjs';\r\n\r\nimport { environment } from '../../environments/environment';\r\nimport { PushNotification } from './notification';\r\n\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class NotificationService {\r\n\r\n  constructor(\r\n    private http: HttpClient,\r\n    @Optional() private swPush: SwPush\r\n  ) { }\r\n\r\n  activate(): Observable\u003cvoid> {\r\n    return Observable.create((observer) => {\r\n      this.swPush.requestSubscription({\r\n        serverPublicKey: environment.webPush.publicKey\r\n      }).then((subscription: PushSubscription) => {\r\n        this.http.post(`${environment.serverUrl}/subscription`, subscription).subscribe(() => {\r\n          observer.next();\r\n          observer.complete();\r\n        }, (err) => {\r\n          observer.error(err);\r\n        });\r\n      }).catch((err) => {\r\n        console.log(err): // => Here an error occurs on Safari : TypeError: undefined is not an object (evaluating 't.subscribe')\r\n        observer.error(err);\r\n      });\r\n    });\r\n  }\r\n\r\n  sendNotification(notification: PushNotification): Observable\u003cvoid> {\r\n    return this.http.post\u003cvoid>(`${environment.serverUrl}/notification`, notification);\r\n  }\r\n\r\n  messages(): Observable\u003cPushNotification> {\r\n    return \u003cObservable\u003cPushNotification>>this.swPush.messages;\r\n  }\r\n}\r\n\r\n```\r\n\r\n## 🔥 Exception or Error\r\n\u003cpre>\u003ccode>\r\nTypeError: undefined is not an object (evaluating 't.subscribe')\r\n\u003c/code>\u003c/pre>\r\n\r\n## 🌍  Your Environment\r\n\r\n**Angular Version:**\r\n\u003cpre>\u003ccode>\r\nAngular CLI: 7.1.4\r\nNode: 8.11.3\r\nOS: darwin x64\r\nAngular: 7.1.4\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router, service-worker\r\n\r\nPackage                           Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect         0.11.4\r\n@angular-devkit/build-angular     0.11.4\r\n@angular-devkit/build-optimizer   0.11.4\r\n@angular-devkit/build-webpack     0.11.4\r\n@angular-devkit/core              7.1.4\r\n@angular-devkit/schematics        7.1.4\r\n@angular/cdk                      7.2.0\r\n@angular/material                 7.2.0\r\n@angular/pwa                      0.11.4\r\n@ngtools/webpack                  7.1.4\r\n@schematics/angular               7.1.4\r\n@schematics/update                0.11.4\r\nrxjs                              6.3.3\r\ntypescript                        3.1.6\r\nwebpack                           4.23.1\r\n\r\nAND : \r\n\"@angular/service-worker\": \"~7.1.0\",\r\n\u003c/code>\u003c/pre>\r\n\r\n**Anything else relevant?**\r\nThis issue is on Safari browser Version 12.0.2 (13606.3.4.1.4)\r\n","author":{"url":"https://github.com/robinComa","@type":"Person","name":"robinComa"},"datePublished":"2019-01-02T13:59:01Z","url":"https://github.com/angular/angular/issues/27889"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:817b94f5-c070-2e9b-dc27-844992d533bd
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBE40:BBAAA:FDD016:14F943C:6B0107DF
html-safe-noncea6e4fc44d9ef6778d9a6ba7bfb00467a01a3b55f6ba912f61ed998f3bef1e0ad
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTQwOkJCQUFBOkZERDAxNjoxNEY5NDNDOjZCMDEwN0RGIiwidmlzaXRvcl9pZCI6IjU4NDg5NDI2Njk0MzAwNjUxMjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1e3a36f831801c8e4890eeb0374d22bb58085c3a26de947d5fdaf6d7b5ecee64
hovercard-subject-tagissue:395256272
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/27889/issue_layout
twitter:imagehttps://opengraph.githubassets.com/fee9ee214984fe145a4dc4cdeb92602590ba410fe329a6387efac7fa1d8c3d5b/angular/angular/issues/27889
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/fee9ee214984fe145a4dc4cdeb92602590ba410fe329a6387efac7fa1d8c3d5b/angular/angular/issues/27889
og:image:alt🐞 bug report Affected Package The issue is caused by package @angular/service-worker Is this a regression? I don't know Description The swPush requestSubscription break on SAFARI browser 🔬 Minimal ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamerobinComa
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/27889#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F27889
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F27889
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/27889
Reloadhttps://github.com/angular/angular/issues/27889
Reloadhttps://github.com/angular/angular/issues/27889
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues835 (835)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/27889
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/27889
Service Worker Push requestSubscription error on SAFARI 12https://github.com/angular/angular/issues/27889#top
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: service-workerIssues related to the @angular/service-worker packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
browser: safarihttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22browser%3A%20safari%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jan 2, 2019https://github.com/angular/angular/issues/27889#issue-395256272
Nexthttps://github.com/angular/angular/issues/27889?timeline_page=1
benleshhttps://github.com/benlesh
area: service-workerIssues related to the @angular/service-worker packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
on Jan 2, 2019https://github.com/angular/angular/issues/27889#event-2051011187
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
on Jan 2, 2019https://github.com/angular/angular/issues/27889#event-2051011267
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Jan 3, 2019https://github.com/angular/angular/issues/27889#issuecomment-451137237
#25781https://github.com/angular/angular/issues/25781
not supported on Safarihttps://developer.mozilla.org/en-US/docs/Web/API/PushManager#Browser_compatibility
supported on Safarihttps://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/pushManager#Browser_compatibility
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jan 3, 2019https://github.com/angular/angular/issues/27889#issuecomment-451148759
@gkalpakhttps://github.com/gkalpak
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jan 3, 2019https://github.com/angular/angular/issues/27889#issuecomment-451150293
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Jan 3, 2019https://github.com/angular/angular/issues/27889#issuecomment-451152233
https://github.com/angular/angular-clihttps://github.com/angular/angular-cli
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jan 3, 2019https://github.com/angular/angular/issues/27889#issuecomment-451156797
this kind of notificationhttps://pushalert.co/documentation/creating-safari-web-push-certificate
issue https://github.com/angular/angular-cli/issues/13359
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on Jan 3, 2019https://github.com/angular/angular/issues/27889#issuecomment-451161776
https://github.com/robinComa
robinComahttps://github.com/robinComa
on Jan 3, 2019https://github.com/angular/angular/issues/27889#issuecomment-451171487
https://developer.apple.com/notifications/safari-push-notificationshttps://developer.apple.com/notifications/safari-push-notifications/
http://devstreaming.apple.com/videos/wwdc/2013/614xax5x602jmihlq4c4edtrl/614/614.pdf?dl=1http://devstreaming.apple.com/videos/wwdc/2013/614xax5x602jmihlq4c4edtrl/614/614.pdf?dl=1
benleshhttps://github.com/benlesh
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
severity3: brokenhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
on Jan 10, 2019https://github.com/angular/angular/issues/27889#event-2067304001
gkalpakhttps://github.com/gkalpak
triage #1https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
browser: safarihttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22browser%3A%20safari%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
on May 26, 2020https://github.com/angular/angular/issues/27889#event-3374612205
https://github.com/gkalpak
gkalpakhttps://github.com/gkalpak
on May 26, 2020https://github.com/angular/angular/issues/27889#issuecomment-634169539
ngbothttps://github.com/apps/ngbot
needsTriagehttps://github.com/angular/angular/milestone/83
Backloghttps://github.com/angular/angular/milestone/82
on Oct 1, 2020https://github.com/angular/angular/issues/27889#event-3830236055
jelbournhttps://github.com/jelbourn
severity3: brokenhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
on Oct 1, 2020https://github.com/angular/angular/issues/27889#event-3830826276
https://github.com/zedL
zedLhttps://github.com/zedL
on Nov 7, 2020https://github.com/angular/angular/issues/27889#issuecomment-723422329
https://github.com/zedL
zedLhttps://github.com/zedL
on Nov 7, 2020https://github.com/angular/angular/issues/27889#issuecomment-723422511
https://user-images.githubusercontent.com/12039628/98437525-1d873f80-20e3-11eb-8a95-d7ffca76254d.png
https://github.com/yansokalau
yansokalauhttps://github.com/yansokalau
on Dec 30, 2020https://github.com/angular/angular/issues/27889#issuecomment-752628380
https://github.com/cghislai
cghislaihttps://github.com/cghislai
on Apr 19, 2021https://github.com/angular/angular/issues/27889#issuecomment-822319896
@yansokalauhttps://github.com/yansokalau
AndrewKushnirhttps://github.com/AndrewKushnir
triage #1https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
on Mar 15, 2022https://github.com/angular/angular/issues/27889#event-6239501026
https://github.com/genevpd
genevpdhttps://github.com/genevpd
on Jun 27, 2022https://github.com/angular/angular/issues/27889#issuecomment-1167863991
https://github.com/hernays
hernayshttps://github.com/hernays
on Nov 2, 2022https://github.com/angular/angular/issues/27889#issuecomment-1299484507
https://github.com/twmobius
twmobiushttps://github.com/twmobius
on Jan 22, 2024https://github.com/angular/angular/issues/27889#issuecomment-1903553446
https://github.com/JeanMeche
JeanMechehttps://github.com/JeanMeche
on Aug 29, 2025https://github.com/angular/angular/issues/27889#issuecomment-3236674235
#63364https://github.com/angular/angular/pull/63364
https://angular.dev/ecosystem/service-workershttps://angular.dev/ecosystem/service-workers
JeanMechehttps://github.com/JeanMeche
not plannedhttps://github.com/angular/angular/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Aug 29, 2025https://github.com/angular/angular/issues/27889#event-19409673970
https://github.com/apps/angular-automatic-lock-bot
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 29, 2025https://github.com/angular/angular/issues/27889#issuecomment-3344434289
automatic conversation locking policyhttps://github.com/angular/angular/blob/f0fbced1c55bc8b8ed9df01cea99df42f3e7eae3/contributing-docs/auto-issue-locking.md
angular-automatic-lock-bothttps://github.com/apps/angular-automatic-lock-bot
on Sep 29, 2025https://github.com/angular/angular/issues/27889#event-19971535014
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/27889
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/27889
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: service-workerIssues related to the @angular/service-worker packagehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20service-worker%22
browser: safarihttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22browser%3A%20safari%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.