There are many reasons to add a service worker to WordPress: for example you may want to improve caching or add web push notifications. Let’s see how to do that.
A notification that is successfully delivered to the browser push service, may not reach the end user for various reasons:
Would you like to send web push notifications only to people located in a given place? If you use Pushpad you can implement that in different ways.
Are you stuck with an old version of the service worker or your imported scripts are not being updated as you expect? This guide shows you how to ensure that your service worker and the imported scripts are updated in a timely manner.
Now you can use Pushpad for delivering time-sensitive messages. For example you can notify urgent alerts or incoming phone calls.
What if you want to send a web push notification only to 10% of your users? This can be useful for example for testing and for measuring CTR for that notification before sending it to all your users. There are many ways to achieve that, but in this tutorial we will show a simple method with tags.
Back in 2015 the first product that we launched was Pushpad Express. Then in the next years we have developed and launched a new product, called Pushpad Pro. Pushpad Pro has proven to be absolutely the best product and offers a lot of advantages compared to Express: that is why we have decided to stop supporting Pushpad Express. All project that use Pushpad Express must move to Pushpad Pro before 1st February 2019. After that date all project that use Pushpad Express will be removed.
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?
This article investigates one of the reasons that negatively impact delivery rates for web push. First it shows that web push subscriptions can last many years without expiring, then it proves a negative correlation between the age of a web push subscription and its expected delivery rate.