Installable (added to homescreen)
Offline-capable (via service worker caching)
Secure (served via https://)
App-like (customizable via manifest.json properties)
Easily Shareable (just a URL)
Re-engagable (via push notifications)
(open from your device browser)
A JSON file of metadata used to describe your app and how it should appear when it's installed to the home screen.
Works for every user, regardless of browser choice because it's built with progressive enhancement as a core tenet.
On install event, cache dependencies
Network Fallback
On fetch event, check the cache for the resource, then fall back to network call
<preference name="ServiceWorker" value="service-worker.js" />
<preference name="CacheCordovaAssets" value="true" />