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 https://opendota.com https://pwa-web.wenghan.me
https://www.wenghan.me https://pwa-web.wenghan.me
WHAT IS PROGRESSIVE WEB APP? https://pwa-web.wenghan.me
“a term used to denote web applications that use the latest web technologies. ” –Wikipedia https://pwa-web.wenghan.me
“a web app that uses modern web capabilities to deliver an app-like experience to users.” –Ionic Framework https://pwa-web.wenghan.me
“a couple of modern web features that you can add to any existing web app, to further enhance UX.” –My Definition https://pwa-web.wenghan.me
PROGRESSIVE WEB APP Safe Progressive Discoverable Responsive Re-Engageable Work Offline Durable App-Like Linkable Fresh https://infrequently.org/2015/06/progressive-apps-escaping-tabs-without-losing-our-soul/
https://pwa-web.wenghan.me
Service Worker (Caching) https://pwa-web.wenghan.me
SERVICE WORKER https://pwa-web.wenghan.me
INSTALLING • Mainly to do Caching related • Static Caching https://pwa-web.wenghan.me
ACTIVATING • After Installing • Delete Old Cache https://pwa-web.wenghan.me
FETCH EVENT Fetch is replacement of AJAX Fetching Data in JSON / Images / Fonts / CSS https://pwa-web.wenghan.me
Caching Strategy THE OFFLINE COOKBOOK https://developers.google.com/web/fundamentals/instant-and-offline/offline-cookbook/ https://pwa-web.wenghan.me
On install - as a dependency - CSS, Images, fonts, JS Templates ACTIVATION EVENT INSTALL EVENT Cache Service Worker https://pwa-web.wenghan.me
On install - not as a dependency ACTIVATION EVENT INSTALL EVENT Cache Service Worker https://pwa-web.wenghan.me
On Activate - as a dependency - CSS, Images, fonts, JS Templates ACTIVATION EVENT INSTALL EVENT Cache Old Cache v1.1 v1.0 Service Worker https://pwa-web.wenghan.me
On User Interaction CLICK EVENT Cache https://pwa-web.wenghan.me
MY STRATEGY Old Cache ACTIVATION EVENT INSTALL EVENT FETCH EVENT Static Caching Image / Video Dynamic Caching Fonts Cache Cache v1.0 and Framework Fetch for Dynamic Data (JSON) v1.1 v1.1 Service Worker https://pwa-web.wenghan.me
DEMO Caching https://pwa-web.wenghan.me https://pwa-web.wenghan.me
BACKGROUND SYNC https://pwa-web.wenghan.me
https://pwa-web.wenghan.me
S https://pwa-web.wenghan.me
ADD TO HOMESCREEN https://pwa-web.wenghan.me
https://pwa-web.wenghan.me
REQUIREMENT Service Worker Registered Serve over HTTPS manifest.json Minimum Benchmark https://pwa-web.wenghan.me
manifest.json MANIFEST Meta Tag for Website Declare how the app look like as icon Orientation. Start url and more! https://pwa-web.wenghan.me
index.html or any html https://pwa-web.wenghan.me
Minimum Benchmark “based on time and number of visits” https://developers.google.com/web/fundamentals/app-install-banners/ https://pwa-web.wenghan.me
https://pwa-web.wenghan.me JUST IN CASE https://barcamp.surge.sh https://barcamp1.surge.sh https://barcamp2.surge.sh https://barcamp3.surge.sh https://pwa-web.wenghan.me
DEMO ADD TO HOMESCREEN https://pwa-web.wenghan.me
https://pwa-web.wenghan.me
https://pwa-web.wenghan.me
Push notification https://pwa-web.wenghan.me
User have to accept to make Push Notification works. https://pwa-web.wenghan.me
SEND TO BACKEND VAPID KEY https://pwa-web.wenghan.me
Push notification https://pwa-web.wenghan.me
https://pwa-web.wenghan.me
DEMO PUSH NOTIFICATION https://barcamp.surge.sh https://pwa-web.wenghan.me
DEMO OTHER COOL STUFF https://barcamp.surge.sh https://pwa-web.wenghan.me
PAYMENT REQUEST API https://developers.google.com/web/fundamentals/payments/ https://pwa-web.wenghan.me
https://www.pwastats.com https://pwa-web.wenghan.me
https://pwa-web.wenghan.me
Recommend
More recommend