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.

Introduction to notifications

Introduction to notifications - JavaScript Tutorial

From the course: JavaScript: Progressive Web Applications

Start my 1-month free trial

Introduction to notifications

- [Narrator] Push notifications have been available in native mobile apps for awhile. They are a core feature used to reengage mobile users. A classic example is part of nearly every messaging app. When you receive a text message, chances are your device makes some kind of noise, a sound, a beep, vibration, and then a notification is delivered. Depending on how your device is configured, you might see a badge, notification dialogue, or a combination of some or all of those. You can click on a notification to immediately open your messaging app and interact with the message. Web push notifications seek to mimic this in the context of a web app. Before we implement push notifications, let's determine what we actually want to do in the context of a PWA. Ideally, we'd like to be able to send users of our PWA a notification to reengage them with our app. Since we can't rely on our app being active, this should be able to occur outside of the app's UI. To implement this, we'll need to work…

Contents