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.
Environment
Staging(Pre-release)aaaaaaWeb Desktop\Web Mobile\Electron\PWA\TWAChrome\Edge\Firefox\Safari\OthersHow to repro
Service worker can't be registered.

Expected situation
I expect that...
Other information
navigator.serviceWorker.controlleris null when sw isn't registered. ButsupportWebPush()will return false when it's null, which blocks the sw to be registered.supportWebPushwhen registering sw, since sw provides many other functions, such as caching.