Service workers on android devices


#1

Hey all, can i use service workers in ionic 1 apps on android devices? I’m getting some errors when running on android device because android uses file protocol to request files:

Error during service worker registration: DOMException: Failed to register a ServiceWorker: The URL protocol of the current origin (‘file://’) is not supported.

It’s not a pwa running on browser, but on android device.


#2

I confirm this issue, i ended up with same error on android device.