Skip to content

In-app messages

In-app messages help you get content to your user without interrupting their day with a push notification. Customized and tailored in-app messages enhance the user experience and help your audience get the most value out of your app. With a variety of layouts and customization tools to choose from, in-app messages engage your users more than ever before.

Check out our case studies to see examples of in-app messages.

Three images of potential Roku in-app messages that a user could build. These examples include "fullscreen takeover", "homepage banner", and "corner notifier".

Setting up in-app messages

Prerequisites

Before you can use this feature, you’ll need to integrate the Braze Roku SDK. Additionally, in-app messages will only be sent to Roku devices running the minimum supported SDK version:

Step 1: Add an observer

To process in-app messages, you can add an observer on BrazeTask.BrazeInAppMessage:

1
m.BrazeTask.observeField("BrazeInAppMessage", "onInAppMessageReceived")

Step 2: Access triggered messages

Then within your handler, you have access to the highest in-app message that your campaigns have triggered:

1
2
3
4
sub onInAppMessageReceived()
  in_app_message = m.BrazeTask.BrazeInAppMessage
  ...
end sub

Message fields

Handling

The following lists the fields you will need to handle your in-app messages:

Styling

There are also various styling fields that you could choose to use from the dashboard:

Alternatively, you could implement the in-app message and style it within your Roku application using a standard palette:

Buttons

Handling analytics

You will need to make sure certain functions are called to handle the analytics for your campaign.

For displayed messages

When a message is displayed or seen, log an impression:

1
LogInAppMessageImpression(in_app_message.id, brazetask)

For clicked messages

Once a user clicks on the message, log a click and then process in_app_message.click_action:

1
LogInAppMessageClick(in_app_message.id, brazetask)

For clicked buttons

If the user clicks on a button, log the button click and then process inappmessage.buttons[selected].click_action:

1
LogInAppMessageButtonClick(inappmessage.id, inappmessage.buttons[selected].id, brazetask)

After processing a message

After processing an in-app message, you should clear the field:

1
m.BrazeTask.BrazeInAppMessage = invalid

Sending a Roku message

Create an in-app message for Roku by selecting Roku Devices as the in-app message platform.

HOW HELPFUL WAS THIS PAGE?
New Stuff!