Push action buttons
This reference article covers what push action buttons are and the difference across iOS and Android platforms.
Push action buttons enable you to set content and actions for buttons when utilizing Braze’s iOS and Android push notifications. With action buttons, your users can interact directly with your app from a notification without needing to click into an app experience to take action.
How to use action buttons
Each interactive button can link to a webpage, a deep link, open the app, or dismiss the notification. You can specify your push action buttons in the On Click Behavior section of the push message composer in the dashboard.
iOS push action buttons
To use action buttons in your iOS push messages, create a push campaign and enable action buttons in the Compose tab.
Then select your Notification Category. You can select from the following available button combinations:
- Accept / Decline
- Yes / No
- Confirm / Cancel
- Pre-registered Custom Category
Due to iOS’s handling of buttons, you will need to perform additional integration steps when setting up push action buttons, which are outlined in our developer documentation. In particular, you will need to either configure iOS Categories or will need to select from certain default button options. For Android integrations, these buttons will work out of the box.
Android push action buttons
To use action buttons in your Android push messages, create a push campaign and enable notification buttons in the Compose tab.
Then click Add Button and specify your button text and On-Click Behavior. You can select from the following available actions:
- Open App
- Redirect to Web URL
- Deep Link into Application
- Dismiss Notification
You can add up to three buttons in your push.
Unlike iOS buttons, which are stacked, Android buttons are displayed side-by-side in a row. This means that the more buttons you add (up to three), the less space you have for your button copy.
The following table outlines how many characters you can add before your button copy is truncated, depending on how many buttons you have:
|Number of Buttons||Max characters per button|