[Answered ]-Django ServiceWorker not in scope

1👍

Your Project must be serve over localhost:[8000] or HTTPS.

If you serve it on local network like 192.168.43.101 you should change it to localhost or install SSL crt. on it.

Service workers require a Secure Context.

(MDN page, Chromium page).

The value of window.isSecureContext indicates whether
[SecureContext] features are visible or hidden. (This is true on a
file:// URL and the serviceWorker API will be visible, but it won’t
work, of course.)

Leave a comment