How to Add Real Web Push Notifications to Your Web App

You’ve probably seen web notifications before. YouTube shows them when it goes to a new song, Facebook pings them when a new message comes in, scammy websites ask for permissions and you say no. The usual.
You can fire those notifications from anywhere inside your JavaScript.