Angular PWA

13
Progressive Web Apps with Angular Vinci Rufus @areai51

Transcript of Angular PWA

Page 1: Angular PWA

Progressive Web Apps with Angular

Vinci Rufus@areai51

Page 2: Angular PWA

App Shell Model

Instant Loading

Offline Support

WTH is a Progressive Web App

60 fps Add to Home Screen

Page 3: Angular PWA

ProgressiveThe is the ‘Key’ Keyword

Page 4: Angular PWA

Web AppIs what it really is …

Page 5: Angular PWA

Selling PWAs (.. Your boss, client, PM..)

• It’s a replacement for your Responsive / Adaptive Web App

• Not every Native App needs to be Native.

• Chrome users on desktop & mobile get super enhanced experience.

• Offline support is not everything.

• There is nothing to lose.

Page 6: Angular PWA

Minimal Viable PWA• App Shell AppComponent• Add to Home Screen Manifest.json• Full Screen Manifest.json• Offline Support Service Worker

Page 7: Angular PWA

Manifest.json

• Home screen icon• Full screen Mode• App Name• Background and foreground color

Page 8: Angular PWA

Service worker (lifecycle events)

Install

Activated

Idle

Terminated

Fetch / Message

Error

Register

Page 9: Angular PWA

Are you a PWA ?

• Lighthousehttps://developers.google.com/web/tools/lighthouse/

Page 10: Angular PWA

Angular CLInpm install -g angular-cling new my-pwa-app –mobile

Ionic 2npm install -g ionic cordovaionic start my-pwa-app --v2

Page 11: Angular PWA

Full-to PWA• Push Notifications GCM | FCM |Push API• Deeply Integrated PWA WebAPK • SSR for app Shell Universal• Pre cache hashed bundles

Page 12: Angular PWA

Examples of PWA

https://github.com/hemanth/awesome-pwa#apps

Page 13: Angular PWA

..and that’s a wrap@areai51