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.
Setting up silent push notifications
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 title
or alert
fields set as it will cause errors when used alongside send_to_sync
—however, you can include data extras
within the object.
When you compose your push notification message, you can send a silent Android push notification by sending a message with only a single space. Keep in mind, this is not the recommended method for sending push notifications, but can be helpful in some cases.