Silent push notifications
Silent notifications allow you to notify your app in the background when important events occur. You might have new instant messages to deliver, new issues of a magazine to publish, breaking news alerts to send, or the latest episode of your user’s favorite TV show ready for them to download for offline viewing. Silent notifications are great for sporadic but immediately important content, where the delay between background fetches might not be acceptable.
Silent notifications are available through the Braze Messaging API. To take advantage of them, you need to set the
send_to_sync flag to
true within the Android push object and ensure there are no
alert fields set as it will cause errors when used alongside
send_to_sync. You can, however, include data
extras within the object.
Silent notifications are also available within the dashboard. To send a silent notification, ensure the title and body fields of the notification are blank as pictured:
This message will cause an intent to be received with an action
BRAZE_PUSH_INTENT_NOTIFICATION_RECEIVED. Handling of this intent to cause any action such as a refresh of app content must be defined within the broadcast receiver you defined during the standard Android integration. See CustomBroadcastReceiver.java for an example of this receiver.