Pushpad

Troubleshooting web push notifications

If you cannot subscribe your website users to web push notifications or you cannot send web push notifications, then you can probably fix your issue by reading the following tips.

The prompt to allow notifications doesn't show up in Chrome / Firefox / Edge / Opera

Symptoms
Solutions

You get a Javascript error about the applicationServerKey

Symptoms
Solutions

The Wordpress plugin doesn't send the push notifications

Symptoms
Solutions

The Wordpress plugin cannot talk with Pushpad:

I get "The website has refreshed in background" instead of the actual notification

Symptoms
Solutions

Push notifications work like this: Pushpad sends a signal to your smartphone and says that there are some unread notifications. Then your smartphone connects to Pushpad to read the new notifications and display them. However if there aren't any new notifications or if your smartphone cannot connect to Pushpad then a default notification is displayed by Chrome.

The notification is successfully sent but it is not displayed

Symptoms
Solutions

A web push notification is marked as successully sent when Pushpad has delivered it to the browser push service (e.g. Mozilla autopush, Google FCM, Microsoft WNS). Then the browser push service is responsible for delivering it to the end device and the user device is responsible for displaying it using the service worker.

General troubleshooting: notifications don't work

If you have a problem that is not listed above you can try with the following steps in order to find the cause.

  1. Are you subscribed to the push notifications?
    • You can go to Project > Subscriptions and see if your subscription is listed there
    • You can go to your website and use the pushpad('status') function of the Javascript SDK
    • Try to keep the browser developer console open while you subscribe to push notifications: are there any errors listed there?
  2. If you are using a library, plugin or integration to send the notifications, then you must ensure that Pushpad receives the notifications. Send a notification, then go to Project > Notifications and check if the notification is listed there.
  3. From the Pushpad dashboard, click Details near the notification. Is the notification successfully sent? Are there any errors listed there? If the counter successfully sent is equal to zero or lower than expected and there aren't any errors listed there, then you can contact support, so that we can check a more detailed log (remember to include the notification id in the ticket).
  4. If the notifications are successfully sent, then you must test the reception. Open the browser tools to inspect the service worker and try to send a notification while keeping the service worker console open: are there any errors listed there?
  5. Finally, you can always contact support and we'd be happy to help! Please remember to include the project id and the notification id if relevant.

If you are having problems on a specific device or you want to send test notifications only to a specific browser for debugging purposes, we recommend to read this tutorial.