PROGRESSIVE WEB APP (INTRODUCTION) Lai Weng Han (Johnson) - - PowerPoint PPT Presentation

progressive web app introduction
SMART_READER_LITE
LIVE PREVIEW

PROGRESSIVE WEB APP (INTRODUCTION) Lai Weng Han (Johnson) - - PowerPoint PPT Presentation

PROGRESSIVE WEB APP (INTRODUCTION) Lai Weng Han (Johnson) https://pwa-web.wenghan.me https://pwa-web.wenghan.me https://pwa-web.wenghan.me https://pwa-web.wenghan.me UTIL https://whatsapp.surge.sh https://pwa-web.wenghan.me OPEN DOTA


slide-1
SLIDE 1

PROGRESSIVE WEB APP (INTRODUCTION)

Lai Weng Han (Johnson)

https://pwa-web.wenghan.me

slide-2
SLIDE 2

https://pwa-web.wenghan.me

slide-3
SLIDE 3

https://pwa-web.wenghan.me

slide-4
SLIDE 4

https://pwa-web.wenghan.me

slide-5
SLIDE 5

UTIL

https://whatsapp.surge.sh https://pwa-web.wenghan.me

slide-6
SLIDE 6

OPEN DOTA

https://opendota.com https://pwa-web.wenghan.me

slide-7
SLIDE 7

https://www.wenghan.me https://pwa-web.wenghan.me

slide-8
SLIDE 8

WHAT IS PROGRESSIVE WEB APP?

https://pwa-web.wenghan.me

slide-9
SLIDE 9

–Wikipedia

“a term used to denote web applications that use the latest web technologies. ”

https://pwa-web.wenghan.me

slide-10
SLIDE 10

–Ionic Framework

“a web app that uses modern web capabilities to deliver an app-like experience to users.”

https://pwa-web.wenghan.me

slide-11
SLIDE 11

–My Definition

“a couple of modern web features that you can add to any existing web app, to further enhance UX.”

https://pwa-web.wenghan.me

slide-12
SLIDE 12

PROGRESSIVE WEB APP

Progressive Responsive Work Offline App-Like Fresh Safe Discoverable Re-Engageable Durable Linkable

https://infrequently.org/2015/06/progressive-apps-escaping-tabs-without-losing-our-soul/

slide-13
SLIDE 13

https://pwa-web.wenghan.me

slide-14
SLIDE 14

Service Worker (Caching)

https://pwa-web.wenghan.me

slide-15
SLIDE 15

SERVICE WORKER

https://pwa-web.wenghan.me

slide-16
SLIDE 16

INSTALLING

  • Mainly to do Caching related
  • Static Caching

https://pwa-web.wenghan.me

slide-17
SLIDE 17

ACTIVATING

  • After Installing
  • Delete Old Cache

https://pwa-web.wenghan.me

slide-18
SLIDE 18

FETCH EVENT

Fetch is replacement of AJAX Fetching Data in JSON / Images / Fonts / CSS

https://pwa-web.wenghan.me

slide-19
SLIDE 19

Caching Strategy

THE OFFLINE COOKBOOK

https://developers.google.com/web/fundamentals/instant-and-offline/offline-cookbook/ https://pwa-web.wenghan.me

slide-20
SLIDE 20

INSTALL EVENT

On install

  • as a dependency
  • CSS, Images, fonts,

JS Templates

Cache Service Worker ACTIVATION EVENT https://pwa-web.wenghan.me

slide-21
SLIDE 21

INSTALL EVENT

On install

  • not as a dependency

Cache Service Worker ACTIVATION EVENT https://pwa-web.wenghan.me

slide-22
SLIDE 22

INSTALL EVENT

On Activate

  • as a dependency
  • CSS, Images, fonts,

JS Templates

Cache Service Worker ACTIVATION EVENT Old Cache v1.1 v1.0 https://pwa-web.wenghan.me

slide-23
SLIDE 23

CLICK EVENT Cache

On User Interaction

https://pwa-web.wenghan.me

slide-24
SLIDE 24

MY STRATEGY

Static Caching Image / Video Dynamic Caching Fonts and Framework Fetch for Dynamic Data (JSON)

INSTALL EVENT Cache Service Worker ACTIVATION EVENT v1.1 Old Cache v1.0 FETCH EVENT Cache v1.1 https://pwa-web.wenghan.me

slide-25
SLIDE 25

DEMO Caching

https://pwa-web.wenghan.me https://pwa-web.wenghan.me

slide-26
SLIDE 26

BACKGROUND SYNC

https://pwa-web.wenghan.me

slide-27
SLIDE 27

https://pwa-web.wenghan.me

slide-28
SLIDE 28

S

https://pwa-web.wenghan.me

slide-29
SLIDE 29

ADD TO HOMESCREEN

https://pwa-web.wenghan.me

slide-30
SLIDE 30

https://pwa-web.wenghan.me

slide-31
SLIDE 31

REQUIREMENT

Service Worker Registered Serve over HTTPS manifest.json Minimum Benchmark

https://pwa-web.wenghan.me

slide-32
SLIDE 32

manifest.json

Meta Tag for Website Declare how the app look like as icon

  • Orientation. Start url and more!

MANIFEST

https://pwa-web.wenghan.me

slide-33
SLIDE 33

index.html or any html https://pwa-web.wenghan.me

slide-34
SLIDE 34

Minimum Benchmark “based on time and number of visits”

https://developers.google.com/web/fundamentals/app-install-banners/ https://pwa-web.wenghan.me

slide-35
SLIDE 35

JUST IN CASE

https://barcamp.surge.sh https://barcamp1.surge.sh https://barcamp2.surge.sh https://barcamp3.surge.sh

https://pwa-web.wenghan.me https://pwa-web.wenghan.me

slide-36
SLIDE 36

DEMO ADD TO HOMESCREEN

https://pwa-web.wenghan.me

slide-37
SLIDE 37

https://pwa-web.wenghan.me

slide-38
SLIDE 38

https://pwa-web.wenghan.me

slide-39
SLIDE 39

Push notification

https://pwa-web.wenghan.me

slide-40
SLIDE 40

User have to accept to make Push Notification works. https://pwa-web.wenghan.me

slide-41
SLIDE 41

SEND TO BACKEND

VAPID KEY

https://pwa-web.wenghan.me

slide-42
SLIDE 42

Push notification

https://pwa-web.wenghan.me

slide-43
SLIDE 43

https://pwa-web.wenghan.me

slide-44
SLIDE 44

DEMO PUSH NOTIFICATION

https://barcamp.surge.sh https://pwa-web.wenghan.me

slide-45
SLIDE 45

DEMO OTHER COOL STUFF

https://barcamp.surge.sh https://pwa-web.wenghan.me

slide-46
SLIDE 46

https://developers.google.com/web/fundamentals/payments/ https://pwa-web.wenghan.me

PAYMENT REQUEST API

slide-47
SLIDE 47

https://www.pwastats.com https://pwa-web.wenghan.me

slide-48
SLIDE 48

https://pwa-web.wenghan.me