Learn how to configure and send silent background and VoIP notifications with OneSignal across iOS, Android, and supported derivatives. Includes payload setup, SDK requirements, and platform-specific limitations.
Background or data notifications—often called “silent” notifications—do not display a message or play a sound. Instead, they are designed to silently wake your app to perform background tasks such as syncing or refreshing data.
application:didReceiveRemoteNotification:fetchCompletionHandler:
.Before configuring background pushes on iOS, review:
This is typically included if you followed our Mobile SDK Setup.
To send a silent background notification:
Omit contents
in your Create notification API request.
Set content_available
to true
.
Add custom payload with the data
field.
Use the AppDelegate
method application(_:didReceiveRemoteNotification:fetchCompletionHandler:)
to process the notification.
⚠️ Important
Background notifications cannot be processed if the app has been swiped away.
In such cases, include a visiblecontents
message and process data in theUNNotificationServiceExtension.didReceive
.There is no way to process a background notification if the app has been force-closed.
Use the NotificationExtenderService to handle data notifications on Android.
This enables:
OneSignal will treat a message as a background/data notification when all of the following are true:
"content_available": true
alert
, badge
, sound
, category
, thread_id
, subtitle
, contents
, and headings
are omittedVoIP notifications are supported for iOS but require additional setup outside of the OneSignal SDKs, which do not register for VoIP tokens.
See the VoIP Notifications Setup Guide for full instructions.
Can silent background notifications detect uninstalls or unsubscribes?
No. Apple and Google intentionally prevent sending silent notifications from being used as a way to detect uninstalls by not consistently responding that a device has unregistered from push, among other technical means.
Do confirmed deliveries work with silent notifications?
iOS: No.
Confirmed delivery relies on the NotificationServiceExtension
(NSE), which only activates when a visible message (contents
) is included. Even if you attempt to blank out the message body in the NSE, iOS will restore the original body content—making the notification visible. Therefore, confirmed delivery does not work with silent notifications.
Learn how to configure and send silent background and VoIP notifications with OneSignal across iOS, Android, and supported derivatives. Includes payload setup, SDK requirements, and platform-specific limitations.
Background or data notifications—often called “silent” notifications—do not display a message or play a sound. Instead, they are designed to silently wake your app to perform background tasks such as syncing or refreshing data.
application:didReceiveRemoteNotification:fetchCompletionHandler:
.Before configuring background pushes on iOS, review:
This is typically included if you followed our Mobile SDK Setup.
To send a silent background notification:
Omit contents
in your Create notification API request.
Set content_available
to true
.
Add custom payload with the data
field.
Use the AppDelegate
method application(_:didReceiveRemoteNotification:fetchCompletionHandler:)
to process the notification.
⚠️ Important
Background notifications cannot be processed if the app has been swiped away.
In such cases, include a visiblecontents
message and process data in theUNNotificationServiceExtension.didReceive
.There is no way to process a background notification if the app has been force-closed.
Use the NotificationExtenderService to handle data notifications on Android.
This enables:
OneSignal will treat a message as a background/data notification when all of the following are true:
"content_available": true
alert
, badge
, sound
, category
, thread_id
, subtitle
, contents
, and headings
are omittedVoIP notifications are supported for iOS but require additional setup outside of the OneSignal SDKs, which do not register for VoIP tokens.
See the VoIP Notifications Setup Guide for full instructions.
Can silent background notifications detect uninstalls or unsubscribes?
No. Apple and Google intentionally prevent sending silent notifications from being used as a way to detect uninstalls by not consistently responding that a device has unregistered from push, among other technical means.
Do confirmed deliveries work with silent notifications?
iOS: No.
Confirmed delivery relies on the NotificationServiceExtension
(NSE), which only activates when a visible message (contents
) is included. Even if you attempt to blank out the message body in the NSE, iOS will restore the original body content—making the notification visible. Therefore, confirmed delivery does not work with silent notifications.