Discussion:
[Crosswalk-help] Is it possible to register service worker using cordova-plugin-crosswalk-webview on android?
Rui Fortes
2016-01-18 00:29:44 UTC
Permalink
Hello.

Can someone tell me if it is possible to register service worker using
cordova-plugin-crosswalk-webview on android?

It always throws with "Failed to register a ServiceWorker: The URL
protocol of the current origin ('file://') is not supported" message

I tried using cordova-plugin-httpd to server the local file via https
but still get the same message.

How can I use service workers with cordova?

Thanks
Fu, Junwei
2016-01-18 03:13:52 UTC
Permalink
The local file scheme isn't supported for ServiceWorker, maybe you need to wait this commit https://codereview.chromium.org/1191793003/#ps40001.

Thanks,
Junwei.
-----Original Message-----
From: Crosswalk-help [mailto:crosswalk-help-***@lists.crosswalk-project.org] On Behalf Of Rui Fortes
Sent: Monday, January 18, 2016 8:30 AM
To: crosswalk-***@lists.crosswalk-project.org
Subject: [Crosswalk-help] Is it possible to register service worker using cordova-plugin-crosswalk-webview on android?

Hello.

Can someone tell me if it is possible to register service worker using cordova-plugin-crosswalk-webview on android?

It always throws with "Failed to register a ServiceWorker: The URL protocol of the current origin ('file://') is not supported" message

I tried using cordova-plugin-httpd to server the local file via https but still get the same message.

How can I use service workers with cordova?

Thanks
Bnaya Peretz
2016-01-18 15:36:51 UTC
Permalink
There's a plugin that might help,
https://github.com/MobileChromeApps/cordova-plugin-service-worker
Post by Fu, Junwei
The local file scheme isn't supported for ServiceWorker, maybe you need
to wait this commit https://codereview.chromium.org/1191793003/#ps40001.
Thanks,
Junwei.
-----Original Message-----
Fortes
Sent: Monday, January 18, 2016 8:30 AM
Subject: [Crosswalk-help] Is it possible to register service worker using
cordova-plugin-crosswalk-webview on android?
Hello.
Can someone tell me if it is possible to register service worker using
cordova-plugin-crosswalk-webview on android?
It always throws with "Failed to register a ServiceWorker: The URL
protocol of the current origin ('file://') is not supported" message
I tried using cordova-plugin-httpd to server the local file via https but
still get the same message.
How can I use service workers with cordova?
Thanks
_______________________________________________
Crosswalk-help mailing list
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
_______________________________________________
Crosswalk-help mailing list
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-help
Loading...