Why is that the service worker that is working of web is not getting registered with converted to apk via capacitor. It just throws this error:
Msg: Service Worker registration failed: TypeError: Failed to register a ServiceWorker for scope (‘https://localhost:3000/’) with script (‘https://localhost:3000/background-worker.js’): An unknown error occurred when fetching the script.