All files should come with app frame web updates. You can start turning you app into PWA by choosing
af.pwa template. It will make sure that your app will meet minimum requirements for PWA.
/file/component/pwa.manifest.json- used to get base setup for progressive web app. Make sure you have correct icons in place.
af.pwa.databinding.SaveToIndexDB.js- for offline usage. Used for communication with service worker and other methods to prepare app to offline mode.
af.pwa.components.FileDownload.js- for offline usage. Handles file download when user is offline.
Service worker registration in template.
Route handler is required for
af.pwa.js in order to serve service worker configuration and other options from the root.
Route handler requires additional files:
af.pwa.sw.workbox.min.js- our service worker
workbox-sw.min.js- library used for service worker
af.pwa.lib.idb.min.js- for offline usage. Library used for Index DB
af.pwa.sw.dataHandler.min.js- for offline usage. Framework methods to handle incomming requests.
af.pwa.sw.article.min.js- for offline usage. Framework methods to store article meta data.
af.pwa.sw.helper.min.js- for offline usage. Framework helper methods.
af.pwa.sw.formData.polifill.min.js- from data polifill for Edge and Safari browser
af.pwa.lib.bluebird.min.js- for correct Promise usage
Offline app Beside offline assets which are served from cache by service worker, service worker can use IndexDB to serve and store data objects contents. We are using network first strategy for data and if network is not available, it will try to serve data from IndexDB. There are some things, which ...Read more...
Placeholder "LocalizeWeb2016" failed