You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: