Silent push: sending web push messages without displaying notifications

When you hear “web push” you probably think about notifications… but that is not necessary true. In theory, the web push technology could be used for delivering messages or updates to the web app, without displaying a notification to a user.

Continue reading “Silent push: sending web push messages without displaying notifications”

The notification prompt can only be triggered by a user gesture on some browsers

On some browsers, the permission prompt for notifications can be displayed only after a user interaction with the website. Let’s see why some browsers enforce this rule, what happens if you don’t comply with it and how can you implement a solution that works across all major browsers.

Continue reading “The notification prompt can only be triggered by a user gesture on some browsers”

The double opt-in for web push notifications

Browsing the web, you may have noticed that most websites use a double opt-in process for subscribing the users to notifications. Basically these websites first show a custom prompt (designed with HTML / CSS) that asks you if you are interested in the notifications, then, when you click the subscribe button, they display another prompt (with native appearance) asking you if you really want to allow the notifications from the website. Isn’t one prompt enough?

Continue reading “The double opt-in for web push notifications”

Display the prompt for web push notifications multiple times

Usually the prompt for web push notifications is displayed only once, the first time that the user visits a website. What if the user blocks the notifications? Is there a way to show the notifications prompt when the user visits the website again? Continue reading “Display the prompt for web push notifications multiple times”

Targeting only recently active users can increase delivery rate of web push notifications

There are various reasons that can prevent a web push notification from being delivered. One of them is the presence of subscriptions that are no longer in use: Continue reading “Targeting only recently active users can increase delivery rate of web push notifications”

Force the user to subscribe to web push notifications

Forcing the user to subscribe to push notifications is probably not a good choice for most websites. However there are some specific situations where it makes sense to do that. Continue reading “Force the user to subscribe to web push notifications”