title: How to use service workers in Cordova Android app?
body: <p>I want to use a service worker in my Cordova Android add as a convenient way to sync some images to and from the server. I notice that <a href="https://stackoverflow.com/questions/39921733/service-workers-on-cordova-app">this question</a> states that this is not possible, since service workers must be loaded via <code>https:</code>, whereas Cordova will load files via <code>file:</code>.</p>
  
  <p>On the other hand, it seems that <a href="https://ionicframework.com/docs/developer-resources/service-worker/" rel="noreferrer">ionic supports service workers</a>. That implies that they have figured out some way to make this work. However, I am not using ionic. There appears to be a <a href="https://www.npmjs.com/package/cordova-plugin-service-worker" rel="noreferrer">cordova plugin for service workers for iOS</a>, but as I said I am on Android.</p>
  
  <p>What is the current best practices for using service workers in Cordova Android apps, if that's possible at all?</p>