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.
application:didReceiveRemoteNotification:fetchCompletionHandler:
.Omit contents
contents
, headings
, subtitle
in your Create notification API request.Set content_available
content_available
to true
.Add custom payload
data
field.AppDelegate
method application(_:didReceiveRemoteNotification:fetchCompletionHandler:)
to process the notification.
contents
message and process data in the UNNotificationServiceExtension.didReceive
.There is no way to process a background notification if the app has been force-closed.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.
Android: Yes.