Skip to main content
Use silent notifications to wake your app and run background work, such as syncing or refreshing data, without showing a message or playing a sound. Send one by setting content_available to true and omitting all visible content, then handle the payload in native code. On iOS these are called background notifications, and on Android they’re called data notifications. Both are commonly called silent pushes. They behave differently from visible notifications in one way that shapes everything else on this page: delivery is best-effort, so no silent push is guaranteed to arrive.

Limitations

  • Apps cannot receive silent pushes if:
    • iOS: The app has been closed by the user, such as swiping it away from the app switcher. (See Apple support).
    • Android: The app has been force-quit via device settings or automatically by some manufacturers when swiped away. (Android force-stop behavior).
  • Delivery is not guaranteed:
    • Both Apple and Google treat silent notifications as best-effort. iOS may delay or drop delivery under Low Power Mode, Background App Refresh off, or if the app was closed by the user. Android may throttle or batch delivery under Doze or OEM power-saving rules.
    • Apple’s stated ceiling is two or three background notifications per hour: “The number of background notifications allowed by the system depends on current conditions, but don’t try to send more than two or three per hour.” See Pushing background updates to your app. Sending more does not raise the ceiling, it just gets more of them dropped.
    • iOS throttles against an energy and data budget for the whole device, so silent pushes to other apps consume the same budget, and the budget resets about once a day. Apple disables this throttle when you run your app from Xcode, which is why silent pushes look far more reliable in testing than in production. See Technical Note TN2265.
    • Because of this, silent notifications should never be used for critical updates.
  • Background execution is time-boxed: iOS gives your app about 30 seconds to finish its work and call the completion handler. Start long transfers with a background session rather than trying to complete them inline.
  • Subscribed users only: OneSignal only sends data notifications to subscribed Subscriptions.
  • Limited support for cross-platform SDKs:

Sending silent notifications from OneSignal

Follow these steps to send a silent notification from OneSignal:
1

Omit visible content

Remove any visible text or titles from the message. This includes:
  • API: contents, headings, subtitle in your Create notification API request.
  • Dashboard: Message, Title, Subtitle
2

Set content_available

  • API: Set content_available to true.
  • Dashboard: Check Content available under “Send to Apple iOS”. Despite the label, this setting applies to all platforms and signals to OneSignal that no visible message is included.
3

Add data to the notification

  • API: Use the data parameter.
  • Dashboard: Use the Additional Data fields.
4

Set priority to 5

API: Set priority to 5. The default of 10 is the wrong value for a silent push.
Send silent pushes with priority: 5, not the default 10. Apple requires normal priority for background notifications and may reject or throttle high-priority ones. On Android, FCM watches for high-priority messages that never produce a visible notification and deprioritizes the app’s messages when it detects that pattern, which degrades delivery for your visible notifications too.

Example API payload

curl
The data object is what your app reads when the push arrives. It reaches your code as userInfo["custom"]["a"] on iOS and as additionalData on Android, both shown in Platform-specific setup below.

Platform-specific setup

iOS background notification setup

Your iOS app must have the Background Modes > Remote notifications capability enabled in Xcode. You already have it if you followed Enable Push Notifications and Background Modes during SDK setup. Without it, iOS never wakes your app for a silent push. To process the notification, implement the AppDelegate method application(_:didReceiveRemoteNotification:fetchCompletionHandler:). OneSignal nests the data object you sent under the a key of the custom dictionary in userInfo.
AppDelegate.swift
Apple documentation:
If the user has closed the app (swiped it away from the app switcher), iOS will not deliver the notification.In such cases, include a visible contents message and process the data in UNNotificationServiceExtension.didReceive instead.

Android data notification setup

Handle data notifications in a notification service extension. Your class implements INotificationServiceExtension, and its onNotificationReceived method runs whenever a push arrives, whether or not the push has visible content. Read the data object you sent from notification.additionalData.
Register the class in your AndroidManifest.xml. Without that manifest entry, the extension never runs. Android documentation:
If the app has been force-stopped (via device settings or by some OEM battery optimization), Android will not deliver the notification. See Android force-stop behavior.

Huawei (HMS) data notification setup

On Huawei devices, OneSignal chooses how to deliver each push to HMS using the huawei_msg_type API parameter:
  • data: HMS delivers the payload to the device and the OneSignal SDK processes it client-side. This is the type you need for silent notifications on Huawei, and it’s also what the SDK uses to render visible full-featured notifications (images, buttons, confirmed delivery).
  • message: HMS Core handles the notification server-side and displays a title and body only. Use data if you need silent delivery or background processing.
huawei_msg_type=data is not the same as a silent notification. It’s the HMS transport type. A data-type push that includes visible content (contents/headings) still displays a full notification. The SDK renders it locally. To send a silent push on Huawei, use huawei_msg_type=data and omit visible content (follow the steps above).
As with Android, if the app has been force-stopped, HMS Core will not start it to process the notification, so a data-type push won’t be delivered. See Android force-stop behavior.

Sending VoIP notifications

VoIP notifications are supported but require additional configuration outside the standard OneSignal SDKs. OneSignal does not register VoIP tokens automatically.

VoIP Notifications Setup Guide

Configure VoIP push notifications for real-time calling on iOS.

FAQ

What priority should I use for silent notifications?

Use priority: 5. The API defaults to 10, which is wrong for a silent push on both platforms. Apple requires normal priority for background notifications, and FCM deprioritizes an app’s messages when it detects high-priority sends that never produce a visible notification, which then degrades delivery of your visible notifications. See Android Doze mode, priority, and deprioritized messages.

Do confirmed deliveries work with silent notifications?

Android: Yes, if the app has not been force-stopped. See Android force-stop behavior. iOS: No. Confirmed receipt on iOS depends on the Notification Service Extension running when the push arrives, and iOS only launches that extension for notifications that will display. A silent push never launches it, so no receipt is reported. See Confirmed delivery.

Can silent notifications be used to detect uninstalls or unsubscribes?

Not reliably. Silent notifications are best-effort and not guaranteed to be delivered, as explained in the Limitations section. Instead:
  • Send visible notifications (with content) to all your users at least once a month.
  • Optionally send silent notifications as a supplemental check.
For more details on handling subscription status changes, see the Subscriptions guide.

Can I use silent notifications to measure how many users are reachable?

No. Silent notifications are best-effort, so they can be delayed or dropped, and they don’t trigger confirmed delivery callbacks, so you have no reliable way to know which users received the push. See Limitations for details. To measure reachable users, send a visible notification and track delivery metrics in Analytics.

Service extensions

Handle notification processing in native code on iOS and Android.

Subscriptions

Understand Subscription types and how they connect to Users.

Create Message API

Send notifications programmatically, including silent pushes.