Skip to content

Send a silent push

Sometimes you need to pass some data to the app, update the app in the background, or get new data from your server without notifying users. This is where Silent Push Notifications become very useful!

Silent Push Notifications are delivered to users’ devices without an alert, sound, or icon badge. When a silent push arrives, the app is woken up in the background. Users don’t receive any alerts or see any push content.

By sending Silent Push Notifications, you can:

  • Notify your app about new content available to download
  • Perform background tasks
  • Get new data from your server
  • Pass custom data to the app

Silent Push Notifications are available out-of-the-box for all Pushwoosh users and can be implemented easily through the API or Pushwoosh Customer Journey.

Silent Push Notifications are also useful for cleaning up your user base. Each time a push is sent, invalid or non-existent push tokens are removed from the database. This is why Silent Push Notifications are used in Uninstall Tracking, which helps keep your user base valid and updated.

Sending Silent push notifications

To send Silent Push Notifications via the /createMessage API request, set the "ios_silent" and "android_silent" parameters to 1.

Example API request:

POST https://cp.pushwoosh.com/json/1.3/createMessage
{
"request": {
"application": "XXXXX-XXXXX",
"auth": ACCESS_TOKEN,
"notifications": [{
"send_date": "now",
"ignore_user_timezone": true,
"content": "test",
"platforms": [1, 3],
"ios_silent": 1,
"android_silent": 1
}]
}
}