Customize Text Messages

Override default invite and wave messages in the StreamLayer Android SDK. Customize share, invite, and wave text using Android string resources with dynamic app name and deep link placeholders.

Customize Text Messages

The SDK provides customizable text messages for invitations and social interactions. All messages use standard Android string resources that you can override.

Share Messages

Set the share message displayed when a user invites friends via the "Invite via..." button in the contact list. The message includes an automatically generated deep link (via Branch.io) so invited users can easily download and install the app. The deep link is appended to the end of the message.

<!--Override value of this resources if needed-->

<!--Invite to Who's watching message template-->
<string name="slr_invite_whos_watching_template">Let's watch together in the new %1$s mobile experience: messaging, fantasy leagues, interactive games &amp; more. %2$s</string>

<!--Invite to Chat message template-->
<string name="slr_invite_messaging_template">I just sent you a message in the %1$s app. Press the invite link and we can watch and chat together in the new %1$s mobile experience. %2$s</string>

<!--Invite to Games message template-->
<string name="slr_invite_game_template">Compete against me in the new %1$s inplay game. Predictions, trivia and polls while hanging out and watching the %1$s LIVE — all in the new %1$s mobile experience. Game on. %2$s</string></string>

The SDK replaces %1$s with the app name and %2$s with the deep link. You can override any template, but keep %2$s at the end so the SDK can append the deep link. To replace only the app name with a custom value, provide it using the R.attr.slrAppName custom attribute in your SLRTheme.

For usage examples, see the demo app.

Wave Messages

Set the wave message sent to contacts when the wave button is pressed:

<!--override value of this resources if needed-->

<string name="slr_wave_message">Hey! Just got here!</string>

Related