Notifications Not Shown - Web Push

Common reasons why Web Push notifications are not showing on your device.

When a notification shows as "Delivered" in OneSignal, it means we have successfully sent the notification to the FCM (Google) / APNs (Apple) / WNS (Microsoft) servers which then distribute the notifications to your subscribers. The following are reasons why notifications may show as "Delivered", but are not visible on your device.

Notifications are blocked in Settings

This is the most common reason. Check your browser settings as follows:

Windows Notification Settings

Turn off Focus Assist: https://support.microsoft.com/en-us/windows/turn-focus-assist-on-or-off-in-windows-10-5492a638-b5a3-1ee0-0c4f-5ae044450e09

Check Settings > Notifications & Actions > Turn on Get notifications from apps and other senders. Make sure your site and browser are also enabled. More details in this article: https://support.microsoft.com/en-us/windows/change-notification-and-action-settings-in-windows-10-8942c744-6198-fe56-4639-34320cf9444e

558

macOS Notification Settings

In System Preferences > Notifications > your browser of choice, make sure notifications are toggled on and set to Banners or Alerts.

If subscribed to a website on Safari, you will also see options for that site. Make sure notifications are also turned on.

600

In System Preferences > Focus, check that you currently don't have a "Focus", "Do Not Disturb" and/or "Sleep" enabled., make sure this is mode is not turned on or you are within the time notifications are allowed.

600

Android Notification Settings

Check in your Settings > Notifications > Chrome (or browser of choice). Make sure "Show notifications" and your website are checked.

800

Network issues - No Internet

Devices must be online to receive push notifications. If your device is turned off, in airplane mode, has unstable or no internet connection, the push will not show until a proper connection is made. You can set the timeframe Google and Apple Servers will wait for a connection with the Time To Live (TTL) Parameter (the default is 3 days).

Also check the network / WiFi you're connected as it may have closed your connection to Apple or Google servers'. Try disabling and re-enabling your internet connection. See our Notifications delayed troubleshooting guide for more details details.

Not Subscribed

Make sure your device is still subscribed to push notifications. You can find your player id with this guide to make sure your device is still subscribed.

Not Targeted In the Push

Check the segment you sent the push to and make sure it is setup correctly. This is under Segments. Sometimes an incorrect filter is added to the segment removing certain devices.

Unregistering Service Worker or Adding PWA

Check your site's codebase for the .unregister() method. Calling this method will delete Service Workers. See this guide for details on this method.

If you have another service worker like for your PWA you will need to follow our Service Worker guide on integrating multiple service workers.

Browser is Closed

Browsers will not receive push if it is not running. Make sure to open the browser.

Clearing Browser Data

Clearing your browser cookies, data, and/or history will cause the browser to not get notifications any longer and will need to revisit the site to re-subscribe. See Clearing Cache and Resetting Push Permissions.

Browser App Data Full

If your mobile browser app has reached its data limit or its data is full, you will need to clear the data on the app.

If your mobile browser app has many unread push notifications and/or many tabs open, this can cause notifications to now show.

Unsupported Browser

Users must subscribe to notifications on their desktop or mobile device to receive notifications and it must be a browser that supports push notifications. Please see Web Push FAQ for Supported Web Platforms.

Debugging Web Push Notifications

Open Chrome and go to your website page with the OneSignal code.

  • Do not use Incognito mode or Guest Browser mode.
  • Do not have any other tabs or windows open to your site.

Mobile Device Debugging:

  • Do not use iOS (iPhone/iPad does not support web push).
  • Use Android, plugin your android device into your desktop with a USB cable.

1. Reset Browser Permissions

Follow these steps to reset browser permission to access site like a first time user.

  1. Click the lock next to your URL
  2. Next to Notification, select "Ask (default)"
  3. Click Cookies
1680
  1. Select your site
  2. Click Remove
  3. Click Done
1680
  1. Reload the page

You have successfully reset your browser data for your site and visiting it like a first time user.

2. Subscribe to your site

Follow the steps you normally take to get prompted for push and subscribe to your site.

3. Find your Player ID and send yourself a Push Notification

  1. Using Chrome, go to your site url with the OneSignal code. Open the JavaScript debugging console in one of the following ways:
  • press F12, or
  • right click the site and press "Inspect", or
  • in the Chrome Menu select View > Developer > JavaScript Console
  1. Open the Console
  2. Use this code to get your new OneSignal Player ID:

OneSignal.getUserId(function(id){console.log(id)});

1680

If you do not get a Player ID, make sure you followed the steps and are subscribed to your site.

  1. If you have a player id, use this code to send yourself a push notification:
    OneSignal.sendSelfNotification();
1680
  1. If you do not get the notification, try Debugging using Browser Developer Tools.