Use the UI SDK for Android

The UI SDK allows you to add Messaging for In-App into your iOS app with a ready-to-go user experience. Open a conversation with the UIClient class. You can customize the colors and strings so that the Messaging user interface looks natural in your app.

Most of the SDK classes are from these two packages:

Create a CoreConfiguration object using the config file that you previously downloaded from your org, or you can manually add the values from within this config file. Use this CoreConfiguration object to create a UIConfiguration object.

OPTION 1: Configure Using the Config File

To learn how to download the config file from your org, see Configure a Messaging for In-App Deployment in Salesforce Help.

OPTION 2: Configure Manually with Config Info

Create a UIClient object. Open a conversation to show the UI.

To take advantage of a pre-chat form or an Einstein Bot, your mobile app code doesn’t require changes. To use pre-chat, make sure that you configured pre-chat in your Embedded Service Deployment within your org. To use a bot, design your bot in your org, and then route the user to the bot with your Omni-Channel flow. To get help, visit our Messaging for In-App and Web learning map.

This step is only required if you want to implement push notifications.

Before you add code in your app for notifications, set up your Firebase project for notifications. Then follow Salesforce org setup instructions at Set Push Notifications for Messaging for In-App.

In your mobile app, make an additional call into the SDK when receiving the device token. To learn more, see Set Up Messaging Notifications for Android.

This step is optional.

The UI SDK automatically brands the app with a default color scheme. You can customize this color scheme in your app by creating a color resource file in your app and using the SDK's token names.

To learn more, see Customize Colors for Android.

This step is optional.

The UI SDK provides default text for all the messages that a user can encounter. To customize these strings in your app, create a strings.xml resource file in your app using the SDK's resource names.

To learn more, see Customize Strings for Android.