Let’s see some workarounds to add web push notifications to a website if you cannot add a service worker to the root folder.
Web Push Notifications
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.
A bell for notifications with JavaScript animation
In this tutorial we create a ringing bell animation with JavaScript and we learn how to create a simple bell icon that you can place in a corner of your web page (e.g. to collect subscribers to your push notifications).
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?
How to send notifications with JavaScript (in 10 lines of code)
It’s very simple to display a native notification using JavaScript.
P2P Notifications? CORS is removed from all major push services
Sending web push notifications directly from a browser to another, using the Push API protocol, is not a secure practice. Now CORS is finally removed from all browser push services.
“This site has been updated in the background”: what is this notification?
If you subscribe to the notifications of some websites, you may sometimes see a strange notification with this content: “This site has been updated in the background”. What does that mean? And if you are the website owner, how can you prevent that notification?