Skip to content
Tutorials Center
My learning

Topics

Progressive Web Apps Tutorial

Learn Progressive Web Apps step by step: 37 lessons in 9 chapters with examples, quizzes, diagrams and projects.

Start learning →

of lessons completed

Getting Started

  1. 1 What Is a Progressive Web App? Learn what a Progressive Web App is, how it differs from a normal website and a native app, and why PWAs are installable, reliable and fast on any device.
  2. 2 The Building Blocks of a PWA See how HTTPS, the web app manifest, service workers and the Cache API fit together in a PWA, and how the browser decides that a site is installable.
  3. 3 The App Shell Architecture Learn the app shell model for PWAs: cache the minimal UI frame once, load content separately, and give users an instant, app-like first paint.
  4. 4 Build Your First PWA Step by Step Turn a small web page into a working PWA in five steps: add a manifest, icons, a service worker and offline support, then test and install it on localhost.
  5. 5 PWA Browser Support and DevTools Know what PWA features work in Chrome, Edge, Safari and Firefox, and learn to debug manifests, service workers and caches with the DevTools Application panel.

Web App Manifest

  1. 6 Web App Manifest Basics Learn the core fields of a web app manifest: name, short_name, description, start_url, scope and id, how to link it, and how browsers resolve its URLs.
  2. 7 Manifest Icons: Sizes, Purposes and Maskable Choose the right PWA icon sizes, understand the purpose values any, maskable and monochrome, design a safe zone, and add the iOS apple-touch-icon.
  3. 8 Display Modes, Colors and Orientation Control how your PWA looks when launched: display modes (standalone, fullscreen, minimal-ui), display_override, theme and background colors, and orientation.
  4. 9 Shortcuts, Share Target and More Manifest Features Go beyond the basics: add app shortcuts, screenshots, share_target, file and protocol handlers, launch_handler and related fields to your PWA manifest.

Service Workers

  1. 10 Service Worker Basics Understand what a service worker is, what it can and cannot do, how it differs from web workers, and how the event-driven model lets it power offline PWAs.
  2. 11 Registering a Service Worker Learn how to register a service worker correctly: feature detection, load timing, scope rules, the Service-Worker-Allowed header, registration objects and how to unregister.
  3. 12 Install and Activate Events Walk through the service worker lifecycle: the install event, precaching with waitUntil, the waiting phase, skipWaiting, the activate event, clients.claim and cache cleanup.
  4. 13 The Fetch Event and respondWith Master the service worker fetch event: inspect requests, use respondWith, route by URL and method, build an offline fallback page and avoid common response mistakes.
  5. 14 Service Worker Updates and Versioning Learn how browsers detect a new service worker, why updates wait, how to version caches, and how to show users an update available prompt safely.

Caching Strategies

  1. 15 Cache API Basics Learn the Cache API for PWAs: caches.open, add, addAll, put, match, delete and keys, how requests are matched, storage limits and quota, with runnable examples.
  2. 16 The Cache First Strategy Learn the cache-first (cache falling back to network) caching strategy: how it works, ideal use cases, code, pitfalls with stale files and how to combine it with versioning.
  3. 17 The Network First Strategy Learn the network-first (network falling back to cache) strategy: fresh content when online, saved copies when offline, with timeouts, code and use cases for HTML and APIs.
  4. 18 Stale-While-Revalidate Learn stale-while-revalidate for PWAs: answer instantly from cache, refresh in the background, notify the page, with code, comparisons and the other cache strategies.
  5. 19 Precaching and Cache Versioning Learn precaching for PWAs: cache the app shell at install time, version caches and files with hashes, clean up on activate, and let Workbox generate the manifest.

Offline and Background Sync

  1. 20 Offline Fallback Pages Show a friendly offline page instead of the browser's dinosaur: precache a fallback, catch failed navigations, and handle images and API calls too.
  2. 21 Offline Data with IndexedDB Store app data offline with IndexedDB: object stores, keys, indexes, transactions, versioned upgrades and a promise wrapper, with a runnable in-memory stand-in.
  3. 22 Background Sync Defer work until the network returns with the Background Sync API: register tags, handle sync events, retry rules, Periodic Sync, browser support and fallbacks.
  4. 23 The Offline Outbox Pattern Build reliable offline writes: optimistic UI, a durable outbox, idempotency keys, ordering, retries and conflict resolution with runnable simulations.

Push Notifications

  1. 24 Push Notifications: The Big Picture Understand how web push works: the Push API, Notifications API, push services, VAPID keys, subscriptions, permissions and platform support, step by step.
  2. 25 Subscribing to Push Subscribe users to web push: feature detection, requesting permission, converting the VAPID key, PushManager.subscribe, saving subscriptions and handling changes.
  3. 26 Sending Push Messages Send web push messages from your server: generate VAPID keys, payload limits, TTL, urgency and topic headers, response codes, cleanup and the service worker push event.
  4. 27 Notification Design and Click Handling Design notifications users keep: showNotification options, tags, actions, notificationclick with client focus, app badges, quiet hours and permission etiquette.

Performance and Lighthouse

  1. 28 PWA Performance Basics Make a PWA feel instant: Core Web Vitals (LCP, INP, CLS), the app shell model, what service workers help or hurt, performance budgets and measuring in the field.
  2. 29 Lighthouse Audits for PWAs Audit a PWA with Lighthouse and DevTools: how to run it, what the performance score weighs, reading opportunities, installability checks, CI budgets and lab versus field data.
  3. 30 Loading and Resource Hints Speed up loading in a PWA: preload, preconnect, prefetch, modulepreload, fetchpriority, lazy images, code splitting, font loading and yielding long tasks.

Installability and Distribution

  1. 31 The Install Prompt Build a custom PWA install experience: beforeinstallprompt, appinstalled, display-mode detection, iOS Add to Home Screen guidance, timing and installed-app analytics.
  2. 32 Updating a PWA Safely Ship PWA updates without breaking users: the update check, waiting workers, skipWaiting trade-offs, an update toast, cache versioning, cleanup and a kill switch.
  3. 33 Store Distribution: TWA, PWABuilder and More Put a PWA in app stores: Trusted Web Activity, Bubblewrap, Digital Asset Links, PWABuilder, Microsoft Store, Samsung, iOS wrappers with Capacitor and what stores expect.
  4. 34 Advanced PWA Capabilities Make a PWA feel native: Web Share, file and protocol handlers, File System Access, Screen Wake Lock, window controls overlay, Background Fetch and safe feature detection.

Projects and Practice

  1. 35 Project: An Offline-First Notes App Build an offline-first notes PWA: file layout, manifest, app shell cache, IndexedDB storage, an outbox with sync, an update toast, and a runnable simulation of the data flow.
  2. 36 Project: A News Reader with Caching Strategies Build a news reader PWA that mixes network-first pages, stale-while-revalidate data, cache-first images, cache limits, saved articles and push alerts, with a runnable strategy router.
  3. 37 PWA Launch Checklist and Practice Review a PWA before launch: installability, offline, security and privacy of caches, performance, accessibility, debugging patterns, practice exercises and a self-test.