[//]: <Don't delete any header! Please fill out the form, or your bug report will not be considered!>
Environment
Environment: Staging(Pre-release)
Last git commit: aaaaaa
Platform: Web Desktop\Web Mobile\Electron\PWA\TWA
Browser: Chrome\Edge\Firefox\Safari\Others
How to repro
Service worker can't be registered.
Expected situation
I expect that...
Other information
This is because navigator.serviceWorker.controller is null when sw isn't registered. But supportWebPush() will return false when it's null, which blocks the sw to be registered.
It's improper to check supportWebPush when registering sw, since sw provides many other functions, such as caching.
[//]: <Don't delete any header! Please fill out the form, or your bug report will not be considered!>
Environment
Staging(Pre-release)
aaaaaa
Web Desktop\Web Mobile\Electron\PWA\TWA
Chrome\Edge\Firefox\Safari\Others
How to repro
Service worker can't be registered.
Expected situation
I expect that...
Other information
navigator.serviceWorker.controller
is null when sw isn't registered. ButsupportWebPush()
will return false when it's null, which blocks the sw to be registered.supportWebPush
when registering sw, since sw provides many other functions, such as caching.