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
I have Svelte app with custom service worker, it works fine in Linux app, but in Android I'm getting this error:
10-26 19:45:52.643 8304 8304 E Tauri/Console: File: http://tauri.localhost/src/main.ts - Line 24 - Msg: Service worker registration failed with TypeError: Failed to register a ServiceWorker for scope ('http://tauri.localhost/') with script ('http://tauri.localhost/service-worker.js'): An unknown error occurred when fetching the script. TypeError: Failed to register a ServiceWorker for scope ('http://tauri.localhost/') with script ('http://tauri.localhost/service-worker.js'): An unknown error occurred when fetching the script.
I'm suspecting, that problem might be with URL (scope), as service worker is installed only from secure/https scope or from http://localhost (later is kind of exception mainly for development). He it is http://tauri.localhost - I think this may be a problem?
Describe the bug
I have Svelte app with custom service worker, it works fine in Linux app, but in Android I'm getting this error:
I'm suspecting, that problem might be with URL (scope), as service worker is installed only from secure/https scope or from http://localhost (later is kind of exception mainly for development). He it is http://tauri.localhost - I think this may be a problem?
Reproduction
My project is at https://github.com/izderadicka/audioserve-web/tree/tauri - so it's now on branch tauri.
cargo tauri android dev
- the device is Android 14 emulatedExpected behavior
Service worker registration should work - it does in Linux desktop app.
Full
tauri info
outputStack trace
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: