MobileChromeApps / cordova-plugin-service-worker

163 stars 37 forks source link

Android version #16

Closed enguerran closed 6 years ago

enguerran commented 8 years ago

Hi,

What do you think about an Android version for this plugin? I am a very beginner on cordova plugin, and I don't even know if it is feasible.

gustavohenke commented 8 years ago

I want this too, mainly because the file protocol doesn't allow me to register the worker.

If someone comes to have an answer for this, please: http://stackoverflow.com/questions/36001320/using-serviceworker-in-cordova

lcustodio commented 8 years ago

In theory there a way to loose the restriction for development. As serving from file:// in cordova is not a security constrain, the option could be considered.

enguerran commented 6 years ago

No sign of life, I close this issue.

Textras commented 6 years ago

@lcustodio have you ever succeeded with Android workaround? Perhaps iFrame or some other hacky solution?

lcustodio commented 6 years ago

Hi @Textras, it's a long time since I worked on this project. As far as I remember it didn't work, the final solution was based on a service (not related to web worker) that kept the state coherent between device and server.