Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
Progressive Web Apps @ domfarolino
Slide 2
Slide 2 text
Dom Farolino •https://github.com/domfarolino •https://twitter.com/domfarolino •ACM@UC Exec
Slide 3
Slide 3 text
Roadmap 1 Native vs. Web 3 Role of the Service Worker 4 Build! 2 Progressive Web Apps
Slide 4
Slide 4 text
Roadmap 1 Native vs. Web 3 Role of the Service Worker 4 Build! 2 Progressive Web Apps
Slide 5
Slide 5 text
Roadmap 1 Native vs. Web 3 Role of the Service Worker 4 Build! 2 Progressive Web Apps
Slide 6
Slide 6 text
Why do people choose native? 1 Native vs. Web
Slide 7
Slide 7 text
• Access to native hardware • Work & load offline • Push Notifications • Home Screen 1 Native vs. Web
Slide 8
Slide 8 text
Native Hardware • Bluetooth • GPS/Location • Camera • Storage
Slide 9
Slide 9 text
Offline Provides user with a functional app shell
Slide 10
Slide 10 text
Offline Usable content with no network connection
Slide 11
Slide 11 text
Push Notifications Easy re-engagement
Slide 12
Slide 12 text
Push Notifications App interactions
Slide 13
Slide 13 text
Home Screen Prime real estate
Slide 14
Slide 14 text
1 Wrapping Up Features Native Web Bluetooth x Camera/Mic x Location x Storage x Offline x Push Notifications x Home Screen x
Slide 15
Slide 15 text
Web wasn’t built for apps no application model
Slide 16
Slide 16 text
No app model • No downloadable bundle (shell) • Text parsing/display (HTML) • Basic styles (CSS) • Basic interactive content (JS)
Slide 17
Slide 17 text
Current Solutions • Iconic • React Native • Phonegap • Electron • …trend of web tooling
Slide 18
Slide 18 text
Roadmap 1 Native vs. Web 3 Role of the Service Worker 4 Build! 2 Progressive Web Apps
Slide 19
Slide 19 text
Feature Parity Through the power of web APIs
Slide 20
Slide 20 text
Browser is Boss Sits between JavaScript and native OS APIs
Slide 21
Slide 21 text
• Just JavaScript! (typical) • Utilize browser’s OS integrations • User gets a progressively richer experience • Feature detection 2 Progressive Enhancement
Slide 22
Slide 22 text
2 Progressive Enhancement
Slide 23
Slide 23 text
Features Native Web Bluetooth x x Camera/Mic x x Location x x Storage x x/2 Offline x Push Notifications x Home Screen x 2 Progressive Enhancement
Slide 24
Slide 24 text
Take a tip from native Explain ourselves
Slide 25
Slide 25 text
Info.plist XML key value pair
Slide 26
Slide 26 text
App Manifest XML key value pair
Slide 27
Slide 27 text
Web equivalent?
Slide 28
Slide 28 text
Web App Manifest manifest.json index.html
Slide 29
Slide 29 text
Manifest Detection
Slide 30
Slide 30 text
Manifest Detection
Slide 31
Slide 31 text
Close to installable
Slide 32
Slide 32 text
Common Points among offline, push notifications, and home screen
Slide 33
Slide 33 text
No content
Slide 34
Slide 34 text
Service Worker API
Slide 35
Slide 35 text
Roadmap 1 Native vs. Web 3 Role of the Service Worker 4 Build! 2 Progressive Web Apps
Slide 36
Slide 36 text
Manifest + SW = Installable Web App
Slide 37
Slide 37 text
Service Worker • Event driven client side proxy • Intercepts network requests • Persistent request/response cache
Slide 38
Slide 38 text
Service Worker
Slide 39
Slide 39 text
Service Worker
Slide 40
Slide 40 text
Progressive Enhancement app.js sw.js
Slide 41
Slide 41 text
SW Events
Slide 42
Slide 42 text
Roadmap 1 Native vs. Web 3 Role of the Service Worker 4 Build! 2 Progressive Web Apps
Slide 43
Slide 43 text
Build What? https://github.com/domfarolino/pwa-meetup