From the course: JavaScript: Progressive Web Applications

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Intro to service workers

Intro to service workers - JavaScript Tutorial

From the course: JavaScript: Progressive Web Applications

Start my 1-month free trial

Intro to service workers

- [Instructor] Google tells us a service worker is a script that your browser runs in the background, separate from a webpage, opening the door to features that don't need a webpage or user interaction. Today, service workers already include features like push notifications and background sync. Core features also include the ability to intercept and handle network requests and programmatically manage an app's cache of responses. The process of getting the browser to prompt users to add your app to the home screen is called web app install banners, and it's one of the things you can accomplish by implementing the service worker API coupled with including a web app manifest. As of this writing, Chrome, Firefox, and Opera provide web app install banner support on Android. Edge also provides some support, but Microsoft currently requires that all PWAs be listed in their app store, iOS doesn't support this regardless of the browser used. Be aware, the user won't be prompted to install your…

Contents