Appear to the user like traditional applications or native mobile applications • Combines the features offered by most modern browsers • It is the best UX
Vue? PWA Q&A 1) Is PWA a Native App or does it create? 3) Can we use PWAs within the framework/lib.? 4) Can we convert existing websites to PWAs? 5) Is it possible to use PWA features in Hybrid Apps?
build a PWA • Download, Display and Store/Cache ◦ Minimal HTML, CSS and JavaScript (contents which don’t oftenly change) • Not loaded from the network every time the user visits • Therefore, loads only the necessary content is needed from the network • For SPAs with heavy architecture, App Shell is go-to approach
the background • Separate from webpage, helps to boost performance • Between network and browser (lets to intercept n/w request) • Provides offline experience to the user (no downasaur) • Includes features like Push Notifications, Background Sync
Let the browser and web know about app • Includes things like: ◦ a splash screen ◦ theme colors ◦ URL to be opened and so on • Contains unique icon and name so to distinguish • Deployed in your HTML pages using a link tag in the head of document
version of sw-precache & sw-toolbox • Applies to existing as well as new sites • Automatically generate a service worker that correctly caches resources • Currently offers… ◦ Offline caching ◦ Offline analytics ◦ Background sync
◦ Correctness of web apps • Generates a report on how well the each page did. • Integrated with Chrome as well as Available as Extension • Also available as Node CLI Lighthouse
No need to code against low-level/traditional API • User-provided configuration a.k.a. ngsw-config.json • Service worker is generated/added by CLI • Separate dedicated package a.k.a. @angular/service-worker Prerequisites • Angular 5.0.0 or later. • Angular CLI 1.6.0 or later.