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
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.
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.
Android Notification Settings
Check in your Settings > Notifications > Chrome (or browser of choice). Make sure "Show notifications" and your website are checked.
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.
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.
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:
- Use Android, plugin your android device into your desktop with a USB cable.
- Chrome: Open this link on Chrome on Desktop:
chrome://inspect/#devicesthen follow the below instructions using your mobile device.
- Firefox: Follow this guide: https://developer.mozilla.org/en-US/docs/Tools/about:debugging
- Chrome: Open this link on Chrome on Desktop:
1. Reset Browser Permissions
Follow these steps to reset browser permission to access site like a first time user.
- Click the lock next to your URL
- Next to Notification, select "Ask (default)"
- Click Cookies
- Select your site
- Click Remove
- Click Done
- 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
- press F12, or
- right click the site and press "Inspect", or
- Open the Console
- Use this code to get your new OneSignal Player ID:
If you do not get a Player ID, make sure you followed the steps and are subscribed to your site.
- If you have a player id, use this code to send yourself a push notification:
- If you do not get the notification, try Debugging using Browser Developer Tools.
Updated 2 months ago