WebView with service worker (what are ServiceWorkerController and ServiceWorkerWebSettings?) : <p>I have a service worker going fine in Chrome desktop and Chrome mobile, and I can tell exactly what is happening via the amazing DevTools in Chrome desktop (monitoring Chrome mobile remotely via USB).  My service worker is based very closely on <a href="https://googlechrome.github.io/samples/service-worker/basic/" rel="noreferrer">this example</a>.  The page reloads fine without a network connection, and from the Network tab of DevTools I can confirm that resources are being cached and served by the service worker as expected.</p>

<p>But I am also loading the same page in a WebView and I'm struggling to determine whether the service worker is actually registering properly and operating as it should.  I can't see a way of debugging this in the same way as you can with DevTools in Chrome desktop/mobile.</p>

<p>What is certain is that the page doesn't reload without a connection when it is in the WebView, so some resources aren't being cached.  This is despite the fact that service workers <a href="https://chromereleases.googleblog.com/2015/03/android-webview-update.html" rel="noreferrer">seem to be supported in WebView</a>.</p>

<p>Looking around the place for possible steps or settings I might be missing to get it working as it does in Chrome, I came across <a href="https://developer.android.com/reference/android/webkit/ServiceWorkerController.html" rel="noreferrer">ServiceWorkerController</a> and <a href="https://developer.android.com/reference/android/webkit/ServiceWorkerWebSettings.html" rel="noreferrer">ServiceWorkerWebSettings</a>, but cannot find any documentation or examples for these (other than the basic docs linked).  A search on StackOverflow for these terms gives zero results.</p>

<p>Is there a working example somewhere of a WebView that loads a page with attached service workers?  Any idea how to use the above two classes... are they actually necessary?</p>
