There are different strategies that you can use to allow a user to opt-out from the push notifications of a website that they have previously enabled.
Web Push Notifications
Prevent the overlapping of notification prompt and cookie consent banner
Sometimes you have multiple prompts on a website (e.g. a cookie consent banner and a notification prompt) and for UI / UX reasons you may want to prevent the overlapping of the different prompts. Let’s see some solutions.
Why the image is not displayed in the web push notification?
In this article we give some tips for troubleshooting, in case the image of a web push notification is not displayed.
Web push notifications without a service worker in the root
Let’s see some workarounds to add web push notifications to a website if you cannot add a service worker to the root folder.
List of HTTP status codes and errors returned by web push services
A list of all the official documentation provided by the push services about the HTTP status codes and errors that can be returned. When an application sends a notification to a browser push service, it should check the status code returned and take appropriate actions.
Push API: the PushSubscription object explained
A “push subscription” represents a subscriber to the push notifications of a website.
Safari 16 adds support for web push notifications (Push API)
The long-awaited support for web push notifications in Safari is finally here.
How to change the scope of a service worker
The scope of a service worker defines when it is active and usually depends on the path where it is located. However in this tutorial we’ll see some directives that allow to change the default scope of a service worker, regardless of its location.
Building a custom browser push service: is it possible?
Can you change the push service used by the browser? Is it possible to build and use a custom push service for delivering the web push notifications to the browser?