What are web push notifications?
You probably know what mobile push notifications are. On your phone, there’s a notification center, which shows things like “Remember to practice French today!” (sent by Duolingo to your Duolingo app instance), or “Could you review the Goat & Boot pub?” (sent Google to your Google Maps app instance). Your app instances can ask you for permission to receive these push notifications. If you authorize it, your phone will display notifications which the app developers send to that app instance.
The same technology exists for browsers! Websites can ask you for permission to receive push notifications. If you authorize it, your browser will display notifications which the website owner sends to your browser.
There are two APIs: the Push API and the Notification API. The Push API enables data to be sent from website operators to your browser. The Notification API lets web apps on your browser to display system-level notifications, outside of any webpage viewport. In mobile push notifications, these two separate pieces of functionality are confused and mixed together.
The mobile OS operators operate central push notification gateways. Apple has one called APNs, and Google has one called FCM. These gateways are central internet services which mobile app instances can subscribe to and app developers can publish to.
More by Jim
- Smear phishing: a new Android vulnerability
- A probabilistic pub quiz for nerds
- Time is running out to catch COVID-19
- The inception bar: a new phishing method
- The hacker hype cycle
- Project C-43: the lost origins of asymmetric crypto
- How Hacker News stays interesting
- My parents are Flat-Earthers
- The dots do matter: how to scam a Gmail user
- The sorry state of OpenSSL usability
- I hate telephones
- The Three Ts of Time, Thought and Typing: measuring cost on the web
- Granddad died today
- Your syntax highlighter is wrong
Tagged . All content copyright James Fisher 2017. This post is not associated with my employer. Found an error? Edit this page.