16
Introduction to Progressive Web Apps BINHBV

Introduction to Progressive Web App

Embed Size (px)

Citation preview

Page 1: Introduction to Progressive Web App

Introduction to Progressive Web

AppsBINHBV

Page 2: Introduction to Progressive Web App

Why do developers need a native app?

• Performance• Offline access• Periodic background processing • Notifications• Sensors• OS-specific features

Page 3: Introduction to Progressive Web App

Progressive Web App areA new way to deliver amazing user experiences on the web.

• Reliable - Load instantly and works on flaky networks .• Fast - Smooth animation, scrolling and nav.• Engaging - Feel like a natural app on the device, with an

immersive user experience.• On the home screen, no URL bar, icons, splash • Re-engaging with push notifications

Page 4: Introduction to Progressive Web App

First progressive web app• Run demo on new Incognito window

(Any registrations and caches created from within an Incognito window will be cleared out once that window is closed)• Run again with real device.• Chrome will prompt user Add to HomeScreen

(app Installable).

Page 5: Introduction to Progressive Web App

Prerequisites1. PWAs can work across browsers

2. Security – HTTPS

Service worker

Page 6: Introduction to Progressive Web App

Introduction about Service Woker

A service worker is like a client-side proxy, written in JavaScript and puts you in control of the cache and how to respond to resource requests.

Page 7: Introduction to Progressive Web App

Life cycleService worker

Page 8: Introduction to Progressive Web App

Features

• Offline• Push• Background Sync • ….

Service worker

Page 9: Introduction to Progressive Web App

Serving suggestions - responding to requests

• Cache only• Network only• Cached first• Network first• Cache then network• …

Page 10: Introduction to Progressive Web App

Cache only

Page 11: Introduction to Progressive Web App
Page 12: Introduction to Progressive Web App
Page 13: Introduction to Progressive Web App
Page 15: Introduction to Progressive Web App

Q&A