Home Page Icon
Home Page
Table of Contents for
Code Snippets
Close
Code Snippets
by John M. Wargo
Learning Progressive Web Apps: Building Modern Web Apps Using Service Workers
Cover Page
About This eBook
Half Title Page
Title Page
Copyright Page
Dedication Page
Contents
Foreword
Preface
Acknowledgments
About the Author
1. Introducing Progressive Web Apps
First, a Little Bit of History
PWAs Are . . .
Making a Progressive Web App
PWA Market Impact
PWAs and App Stores
Wrap-Up
2. Web App Manifest Files
Save to Home Screen
Making a Web App Installable
Anatomy of a Web App Manifest
Controlling the Installation Experience
Preparing to Code
App Installation in Action
Troubleshooting
Manifest Generation and More
Wrap-Up
3. Service Workers
PWA News
Introducing Service Workers
Preparing to Code
Registering a Service Worker
Service Worker Scope
The Service Worker Lifecycle
Wrap-Up
4. Resource Caching
Service Worker Cache Interface
Preparing to Code
Caching Application Resources
Implementing Additional Caching Strategies
Wrap-Up
5. Going the Rest of the Way Offline with Background Sync
Introducing Background Sync
Offline Data Sync
Choosing a Sync Database
Preparing to Code
Enhancing the PWA News Application
Wrap-Up
6. Push Notifications
Introducing Push Notifications
Remote Notification Architecture
Preparing to Code
Generating Encryption Keys
Validating Notification Support
Checking Notification Permission
Getting Permission for Notifications
Local Notifications
Notification Options
Subscribing to Notifications
Unsubscribing from Notifications
Remote Notifications
Dealing with Subscription Expiration
Sending Notifications to Push Services
Wrap-Up
7. Passing Data between Service Workers and Web Applications
Preparing to Code
Send Data from a Web App to a Service Worker
Send Data from a Service Worker to a Web App
Two-Way Communication Using MessageChannel
Wrap-Up
8. Assessment, Automation, and Deployment
Assessing PWA Quality Using Lighthouse
Preparing to Code
PWABuilder
PWAs and the Microsoft Store
Wrap-Up
9. Automating Service Workers with Google Workbox
Introducing Workbox
Generating a Precaching Service Worker
Add Precaching to an Existing Service Worker
Controlling Cache Strategies
Wrap-Up
Index
Credits
Code Snippets
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Code Snippets
Next
Next Chapter
Code Snippets
Code Snippets
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset