Push Notifications with Buttons

Encourage users to engage directly with your app from a notification by adding relevant actions as buttons, like Learn More, Shop Now, and View.

Use one of the five UI-available buttons in the Sailthru Mobile UI or add your own custom button. Custom buttons expand your options – there are six additional button options through the Mobile SDK or you can leverage a fully custom button that’s already built into your app. 

Note: You must be on the latest version of the SDK to add buttons to push notifications. The versions are:

  • iOS: 9.0.0+
  • Android: 10.0.0+
  • React Native: 4.0.0+

UI Availble Buttons

The following button options are available through the Sailthru Mobile UI, from the Message Compose screen.

Yes/No

Display two buttons on your push notification, a Yes button and a No button. The Yes button takes users directly to your app or to a specified link. The No button dismisses the notification. 

Learn More

Display a single Learn More button on your push notification. The button takes users to your app or to a specified link. 

View

Display a single View button on your push notifications. The button takes users to your app or to a specified link. 

Shop Now

Display a single Shop Now button on your push notifications. The button takes users to your app or to a specified link. 

Continue

Display a single Continue button on your push notifications. The button takes users to your app or to a specified link.

Custom

Create a single custom button on your push notifications using a custom category. The button can be an option available in the SDK or a custom button you built into your app. When tapped, the button takes users to your app or will follow the custom behavior built into your app.

Sailthru Mobile’s SDK options
The following buttons are available through the Sailthru Mobile SDK. These can be added to your push notification through the Custom option. To use these options, see Add a Custom Button.

Category Name Category ID Positive Action (button name) Negative Action (button name)
Accept/Decline st_cat_accept_decline Accept Decline
Next Step st_cat_next_step Next Step
Add st_cat_add Add
Watch st_cat_watch Watch
Subscribe st_cat_subscribe Subscribe
Share st_cat_share Share

 

Note: If you wish to use a custom button that’s built into your app, the string you enter must match what you have registered with the Sailthru Mobile SDK. 

Add a Button to Your Push Notification

To add a button to your push notification, start in the Message Compose screen. 

  1. Select Add Custom Fields under the Push Notification.
  2. Select Buttons to show your options.
  3. Select the type of button you’d like to add from the list.
  4. Select your button behavior. A button can take users directly to your app or to a specified link.
  5. Save your work.

Add a Custom Button to Your Push Notification

Adding a custom button requires different input after you’ve selected the type of button you’d like to add.

  1. Select Custom from the list of button types.
  2. Enter a name for your custom category. For example, st_cat_accept_decline. This will add Accept and Decline buttons to your notification.
  3. Save your work.
Top