MobileChromeApps / cordova-plugin-service-worker

163 stars 37 forks source link

Misconfigured plugin causes the app to fail #8

Open clelland opened 9 years ago

clelland commented 9 years ago

If the <preference> tag is not present in config.xml, or the named service worker script doesn't exist, then the fetch queue is never processed at all, and the application will white-screen on startup.

We need to handle this in a more robust manner. If the plugin cannot initialize properly, then it should not install the fetch delegate, and any serviceworker registration calls should return a rejected promise.