How to send browser push notifications from a Node.js app

Опубликовано: 28 Октябрь 2024
на канале: Knock
4,359
91

Learn how to send web push notifications using Node.js and the node-pushnotifications library. Set up a notification server, subscribe from the browser, and handle push events with a service worker.

Resources
https://knock.app/blog/how-to-send-br...
https://github.com/JEverhart383/knock...
https://vapidkeys.com/

00:00 Introduction
00:51 Project setup
01:40 Project overview
03:20 VAPID keys explained
04:15 Server push library
06:22 Client-side code
11:01 Service worker explained
13:33 Push flow recap
14:48 Wrap up