OneSignal Help & Documentation

Welcome to the OneSignal New IA developer hub. You'll find comprehensive guides and documentation to help you start working with OneSignal New IA as quickly as possible, as well as support if you get stuck. Let's jump right in!

Get Started    Discussions

Notifications Not Shown

Common reasons why 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/APNS/WNS servers which then distribute the notifications to your subscribers.

The following are reasons why notifications may show as "Delivered" on the OneSignal dashboard or API, but are not visible on your device or website.

Common Issues for All Platforms

Network issues - No Internet

Devices must be online to receive push notifications. If your device 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 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

  1. 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.

  2. Check the Player ID record in the All Users section of the dashboard. Under the "Segments" column, you will see if that user is in the segment targeted for push.

Jump to specific troubleshooting by platform:


Mobile App Notifications Not Showing

If your device is subscribed and has a working network connection, try adding your device as a Test User. Make sure you are using the latest version of the OneSignal SDK and have the app running in the background when you test the push.

The app is currently In Focus

Please check the value you added in you init for inFocusDisplaying or inFocusDisplayType depending on your Mobile SDK Version.

If you set this to None or 0 then no notification will show while the app is open. There are other options you can set this to if you want to show notifications while the app is open.

Android Mobile App Notifications Not Showing

The app has push permissions Disabled

In your Device Settings, you can turn on and off push notifications. Check the notification setting under Settings > Apps

Low Power, Energy Saving, Do Not Disturb Mode

Some devices have a specific battery optimization that will stop notifications from showing.

  • Android - "Energy Saving" or "Battery Optimization mode". On the device, check Settings > Battery > Battery Optimization or Adaptive Battery > Find your app and press Don't optimize

The App is Force Stopped

Android

When an app is in a Force Stopped / Force Killed state most events including FCM messages for push notifications will not be received. An app can be placed in this state in the following ways.

  • From Settings > Apps, "Force Stop" is pressed.
  • Long pressing the back button on some devices.
  • Using a 3rd party task killer like Greenify.
  • Swiping away your app while remote debugging it. (Not the same as viewing the logcat but launching your app as a remote debug process.)
  • Automatically on some devices due to custom Android tweaks done by manufactures. This is a known issue affecting all push providers (not just OneSignal). We have written a blog post about this and provide more details and discussion in this Github Issue.

Based on your device manufacturer, you can follow these steps to enable push for your device. For your app users, if you want to help educate them on this issue, you can send these specific devices In-App Messaging to enable proper settings.

Manufacturer
Description

Asus

Check your app in the Auto-start Manager.



Huawei

Step 1: Settings --> Advanced Settings or Power Saving --> Battery Manager or Protected Apps --> select the app to protect it.

Step 2: Settings --> Apps or Notification Manager --> Advanced or Notify for your app --> Ignore Battery Optimizations, select the app and ignore it.

Step 3: Settings --> Notification Panel & Status Bar --> Notification Center, select the app, then activate "Allow Notifications" and also "Priority Display".

Full Instructions

Pre-EMUI 5.0 / Android 7 - Go to Settings > "Protected apps", check your app. Full Instructions



LeEco/LeTV

Step 1: Settings --> Permissions --> Manage Auto Launch --> select the app to protect it.

Step 2: Settings --> Battery --> Power Saving Management --> App Protection, select the app and ignore it.



Lenovo

Settings --> Power Manager --> Background App Management, select the app and ignore it.



OnePlus

Settings > Battery > Battery optimization > Top right 3-dot menu > Advanced optimization, turn off.

Settings > Battery > Battery optimization > Your App > select Don’t optimize.

Settings > Alert slider to make sure it’s set up the way you want.

Make sure that Gaming mode is off or go to Settings > Advanced > Gaming mode and toggle Block notifications

Look in Settings > Apps and check the Notifications settings for any problem apps.
More details



Oppo

Settings --> "Security settings" --> "Data saving" and enable your app.



Samsung

Disable battery usage optimizations

Settings > Device Management > Battery --> Unmonitored apps > Add your app

Make sure notifications are turned on for your app

Settings > Apps > Your app > App Settings > Notifications > Set as Priority

Samsung devices with Android 8 & 9 have a “Standby” mode where the app will not get any notifications, updates, or Intents until the app is opened again by user. This is default to 3 days, but can be increased to 7 days.



Sony

Tap on the battery icon. Go to Power Management --> STAMINA mode --> Apps active in standby --> Add your app.



Xiaomi/
Redmi

Settings > Installed Apps > Your App > Battery Saver > change option from "Battery Saver" to "No restrictions".

Provide authorization to your app to run at startup by activating the AutoStart option in Settings > Installed Apps > Your App
OR
Security (App) --> Permissions --> Autostart - Enable your app

Settings > Notifications & status bar > Turn on "Show Notification Icons" (if you want to see icons) > App notifications > Your App > Show notifications

Settings --> Developer Options. Disable "memory optimization". To enabled Developer Options go to Settings --> About. Tap on MIUI 8 times. Full Instructions

MIUI 10

Settings > Battery & performance > Choose apps > Select the app that is not showing notifications > Select No restrictions

Settings > Permissions > Autostart > Toggle slider next to the apps that are not getting push

More information on problematic devices can be found in our blog post: Notifications are highly reliable, except when device manufacturers interfere

Checking your app state

1. Run the following to check the current state of your app.
Replace "com.company.appname" with your package name.

adb shell dumpsys package com.company.appname | grep stopped

If you see stopped=false if everything is fine, otherwise you will see stopped=true then your app was force killed in some way.

2. Another way is to send a few notifications and check for the following GCM logcat entry.

W/GCM-DMM: broadcast intent callback: result=CANCELLED forIntent {
   act=com.google.android.c2dm.intent.RECEIVE pkg=com.onesignal.example (has extras)
}

If you seen this cancelled intent above then your app could not be started to process the notification.

Some device manufactures will white list apps from going into the force closed state. Example such as Gmail and Whatsapp.

Additional Debugging

Android

FCM provides a REST API to query the last time a device has been connected to FCM. See the following Google documentation on how to get this.
https://developers.google.com/instance-id/reference/server#get_information_about_app_instances


iOS Mobile App Notifications Not Showing

The most common reason is an outdated version of the OneSignal SDK in the app. Make sure you updated to the latest version of the OneSignal SDK in your app. You should have minimum version 2.10.1.

Xcode 11 change

If you are using Xcode 11, make sure you are using the latest version of the OneSignal SDK (minimum version 2.10.1). You can open your All Users page and check the SDK VERSION column to see what version you are on. Xcode 11 made a breaking change that affects push token registration. More details here: https://onesignal.com/blog/ios-13-introduces-4-breaking-changes-to-notifications/

Allow Notifications Turned Off

In your Device Settings > Notifications > Your App, you can turn on and off push notifications. Make sure push permissions are enabled for your device:

Low Power or Do Not Disturb Mode

If the device has Low Power Mode enabled and has low power, it will reduce the rate at which notifications can be received. Check if enabled in Settings > Battery > Low Power Mode.

If the device has Do Not Disturb enabled this prevents the notifications from "popping up" on the screen but still shows in the "Notification Center" of the device when you swipe down.
Check if enabled in Settings > Do Not Disturb.

Action buttons or iOS 10+ media are set and requirements are not meet

iOS

The app must be not force killed and the correct settings must be enabled when these options are set.
See our Notifications with action buttons or iOS 10+ media not displaying section for a full check list.


Web Push Notifications Not Showing

Web Push

Notifications are blocked in Settings

This is the most common reason. Check your browser settings on desktop or app settings on mobile:

Service Worker or PWA

If you have another service worker or PWA on the site, this can cause issues with the OneSignal Service Worker required for push notifications.

Please see our Service Worker guide on how to use OneSignal with a PWA or multiple service workers

Browser is Closed

Some browsers will not receive push if it is not running. More details in our Browser Behavior Guide.

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.

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 Supported Web Platforms.

Full Screen

Full screen mode in some older browser versions prevent web push notifications from appearing. Make sure no windows are in full screen mode. Please see Web Push Troubleshooting Docs for more.

Debugging Web Push Notifications

Please follow these simple steps to debug your site:

1. Use Chrome (or your favorite browser for debugging if a developer) and go to your site url with the OneSignal code. Open the JavaScript console. Generally, this is done by:

  • right click the site and press "Inspect", or
  • in the Chrome Menu select View > Developer > JavaScript Console

2. In the console use this code to send yourself a push notification if you are still subscribed:
OneSignal.sendSelfNotification();

3. If no notification shows up, please clear your browser permission and cookies to access your site as a first time user and resubscribe:

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

4. Then in the Console use this code to get your new OneSignal Player ID:
OneSignal.getUserId(function(id){console.log(id)});

5. You can copy-paste that player id into your onesignal.com All Users page and add yourself as a Test User this will also tell you if you are subscribed correctly.

6. Repeat step 2 to send yourself a notification with OneSignal.sendSelfNotification();

If you still do not get the notification, contact support and provide your new player id and site URL with the OneSignal code.

Updated 2 days ago


Notifications Not Shown


Common reasons why push notifications are not showing on your device.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.