6. Push Notifications

One of the things that makes mobile apps so engaging is the mobile platform push notification capabilities that enable app developers to send information to the device running the app. Depending on the device OS and the type of notification, the information sent to the device displays in the device’s notification area or appears in-app. Notifications expand the scope of the app beyond what’s currently available on the device and deliver a clean way to keep app users informed of almost anything.

Service workers give web apps some of the same capabilities. In this chapter, I show how to configure a web app to support notifications plus how to send notifications to subscribed browsers through a server process. Like the previous ...

Get Learning Progressive Web Apps: Building Modern Web Apps Using Service Workers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.