Pushpad

Articles about web push notifications

Building a demo page for testing web push notifications

This tutorial can be useful for development if you want to test web push notifications on your domain using Pushpad. You will see how to create a demo page where a user can subscribe to notifications and send a notification with custom options to himself.

  • # javascript-sdk
  • # targeting
  • # web-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.

  • # deliverability
  • # push-api

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.

  • # service-worker

"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?

  • # push-api
  • # web-notifications

Debugging web push notifications on a specific device

This article describes a simple and effective method for debugging web push notifications on a specific browser using Pushpad.

  • # deliverability
  • # javascript-sdk
  • # push-api
  • # targeting
  • # web-notifications

Updating the service worker

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.

  • # service-worker

Web push subscription age affects delivery rates

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.

  • # deliverability
  • # push-api

Debugging service workers and push with Firefox

If you have problems with web push or with other service worker based technologies on Firefox, then you probably want to use the Firefox developer tools for debugging.

  • # service-worker

Reset browser permission for web push notifications

Many issues related to web push notifications can be solved by simply resetting the browser permission. That removes the old browser subscription and creates a new subscription. 

  • # permission
  • # web-notifications

Migrate to Pushpad from another service

If you currently use a service different from Pushpad and you want to migrate your existing web push subscribers to Pushpad you can follow these steps:

Inspect service workers with Chrome

If you work with the Push API or service workers in general you know that debugging can be a pain. Fortunately Chrome has two hidden gems that can save you many headaches.

  • # service-worker

Service worker: importScripts never updates scripts

Pushpad is a service for web push notifications. In order to add push notifications to their websites, **our customers need to install the service worker that we provide on their websites**.

  • # service-worker