Slide 1

Slide 1 text

Planning Your PWA Jason Grigsby, Co-Founder, Cloud Fou r Gerardo Rodriguez, Senior Front-end Developer, Cloud Four

Slide 2

Slide 2 text

Factors to Consider When Planning Your PWA

Slide 3

Slide 3 text

O ff line Interactivity Cache for Perf Only O ff line Native App Stores Website with Perf Improvements Full Screen, App Shell New APIs No Add to Home Screen Basic PWA Feels Like An App Installation and Discovery No Push Notifications Personalized and Integrated Push Push Notifications Beyond PWAs

Slide 4

Slide 4 text

1. Making it feel like an app

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

Like obscenity and brunch, web apps can be described but not defined. —Jeremy Keith, By any other name

Slide 7

Slide 7 text

Make it look native? https://material.io/guidelines/platforms/platform-adaptation.html#platform-adaptation-when-to-adapt

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

Animate Transitions for Wayfinding and Polish https://css-tricks.com/native-like-animations-for-page-transitions-on-the-web/

Slide 11

Slide 11 text

Personality Amazing SVG Animation by Darin Senne ff https://codepen.io/ dsenne ff /full/ 2c3e5bc86b372d5424b00 edaf4990173/

Slide 12

Slide 12 text

Get /category.html Send /category.html and JS app Page Browser Server Get products Send products API Server Get green hoodie Send green hoodie JS App Single Page Application (SPA)

Slide 13

Slide 13 text

PWA != SPA

Slide 14

Slide 14 text

Turbo in tercepts click Gets document from server Title CSS JavaScript Body Title CSS JavaScript Body Replaces certain changed elements, discards rest Turbo and Hotwire for SPA-like experiences

Slide 15

Slide 15 text

Maybe?

Slide 16

Slide 16 text

Seamless embeds and navigation with Portals. Created by Adam Argyle. Portals

Slide 17

Slide 17 text

Shared Element Transitions API

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

Should feeling like an app be the goal? Should feeling like an app be your goal?

Slide 20

Slide 20 text

Feel Like an App Website with Performance Improvements Full screen, app shell with native design language Minimal-ui Standalone System Fonts Fullscreen Animation and Polish App Shell Native Design MORE COMPLEX LESS COMPLEX

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

2. Installation and Discovery

Slide 23

Slide 23 text

Add to Home Screen Prompts

Slide 24

Slide 24 text

Add to Home Screen Install Prompts Chrome Edge

Slide 25

Slide 25 text

Pick the Optimal Time to Ask for Install Asking on order confirmation page resulted in 3x increase in conversion for Flipkart. Controlling when the prompt shows up is now what every PWA must do.

Slide 26

Slide 26 text

App Stores

Slide 27

Slide 27 text

PWAs don’t no need an app store!

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

Remember, your PWA is your website so all the normal web marketing applies.

Slide 35

Slide 35 text

What does installation of a PWA mean? When is a PWA really installed?

Slide 36

Slide 36 text

No content

Slide 37

Slide 37 text

No content

Slide 38

Slide 38 text

No content

Slide 39

Slide 39 text

Why focus on this? Instead of all of this?

Slide 40

Slide 40 text

Not every customer or potential customer will add your Progressive Web App to their home screen …but every visitor will “install” your PWA!

Slide 41

Slide 41 text

Installation and Discovery No Add to Home Screen Native App Stores Manifest Install Prompt Time Install Prompt Capacitor Trusted Web Activity MORE COMPLEX LESS COMPLEX

Slide 42

Slide 42 text

3. O ff line Mode

Slide 43

Slide 43 text

Cache for performance and o ff line fallback

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

Cache recently viewed content for o ff line use

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

O ff line Cache for Performance Only O ff line Interactivity O ff line Fallback O ff line Indicator Cache Recently Viewed Pages Disable Interactivity Pre-cache Predetermined Pages Pre-cache Dynamic Items User Choose What to Cache MORE COMPLEX LESS COMPLEX

Slide 49

Slide 49 text

4. Push Notifications

Slide 50

Slide 50 text

Many Hidden Challenges

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

No content

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

3x Higher Conversion for Personalized Notifications

Slide 55

Slide 55 text

Flowchart for how Slack decides whether to send a notification or not. https://twitter.com/codevisuals/status/ 838881724016787457

Slide 56

Slide 56 text

Push Notifications No Push Notifications Personalized and Integrated Notifications CMS Plugin Subscribe via Push Provider One-o ff Marketing Push Notifications Background Updates Notification Design Analytics and Segmentation Backend Integration MORE COMPLEX LESS COMPLEX

Slide 57

Slide 57 text

5. Beyond PWAs

Slide 58

Slide 58 text

Auto-login with Credential Management API and WebAuthN

Slide 59

Slide 59 text

Payment Request API

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

No content

Slide 62

Slide 62 text

Beyond PWAs Basic PWA Multiple New APIs Autofill Support Credential Management API Camera, other sensors Payment Request API WebAuthN MORE COMPLEX LESS COMPLEX

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

PWAs are progressive because… Progressive Roadmap {manifest} https Jul 13 Redesign launches Better security with HTTPS Faster site via HTTP/2 Better bookmarks via manifest Oct 3 Faster pages O ff line fallback It’s a PWA! service worker Oct 18 O ff line pages O ff line indicator Improved font loading Nov 22 Push notifications HTTP/2 Link Preload Dec 7 Small tweaks PWA announced

Slide 65

Slide 65 text

Progressive Web App Blueprint Planning & Definition

Slide 66

Slide 66 text

Define Your Ideal Progressive Web App

Slide 67

Slide 67 text

O ff line Interactivity Cache for Perf Only O ff line Native App Stores Website with Perf Improvements Full Screen, App Shell New APIs No Add to Home Screen Basic PWA Feels Like An App Installation and Discovery No Push Notifications Personalized and Integrated Push Push Notifications Beyond PWAs

Slide 68

Slide 68 text

Benchmark & Plan to Measure

Slide 69

Slide 69 text

Progressive Web App Blueprint Planning & Definition Technical Debt (if Necessary) Gather team Brainstorm Ideal PWA Benchmarks and measurement plans Build roadmap

Slide 70

Slide 70 text

Progressive Web App Blueprint Planning & Definition Technical Debt (if Necessary) Baseline PWA Front-end Additions Larger Initiatives Gather team Brainstorm Ideal PWA Benchmarks and measurement plans Build roadmap Assess current website Fix performance issues Fix usability issues Manifest HTTPS Service worker for performance O ff line Fallback Cache recently viewed pages Precache popular or important pages Add third-party push notification service CMS plugin for push notifications Payment Request API Credentials Management API Integrate notifications with backend systems Background sync Move to app shell

Slide 71

Slide 71 text

Baseline PWA Front-end Additions Larger Initiatives Progressive Web App Blueprint Planning & Definition Technical Debt (if Necessary) Gather team Brainstorm Ideal PWA Benchmarks and measurement plans Build roadmap Assess current website Fix performance issues Fix usability issues Manifest HTTPS Service worker for performance O ff line Fallback Cache recently viewed pages Precache popular or important pages Add third-party push notification service CMS plugin for push notifications Payment Request API Credentials Management API Integrate notifications with backend systems Background sync Move to app shell

Slide 72

Slide 72 text

Every step on the path to a PWA makes sense on its own.

Slide 73

Slide 73 text

No content

Slide 74

Slide 74 text

https://abookapart.com/products/ progressive-web-apps

Slide 75

Slide 75 text

Thank You!

Slide 76

Slide 76 text

Thank You! Close-Up Photography of Bicycle Chain by Miguel Á. Padriñán White Blank Notebook by Tirachard Kumtanom Schedule Planning by Startup Stock Photos Tin Foil Man by Gratiosgraphy 
 Man Holding an Apple by cottonbro Coming Soon by cottonbro Apple O ff ice Internet iPad by Pixabay Woman Jumping by Quang Anh Ha Nguyen Person Holding Black Smartphone by freestocks.org SEM by Pixabay 
 Similar cubes with RULES inscription by Joshua Miranda In Hiding by Taylor McBride My Secret Plan to Rule the World Book by Ann H White Auto Gauge by Mikes Photos iPhone Photo on Railroad Tracks by Kaique Rocha database by ✦ Shmidt Sergey ✦ from the Noun Project Cloud by Blackwoodmedia.com.au from the Noun Project Responsive Design by Delwar Hossain from the Noun Project cogs by Gregor Cresnar from the Noun Project Special thanks to these fabulous folks who shared their work under Creative Commons.

Slide 77

Slide 77 text

No content