Set up mobile in-app chat
Add Live Chat to your mobile application as an in-app chat. The in-app chat is available on the iOS, Android, and Huawei mobile platforms, and as React Native and Flutter plugins. To try the in-app chat without any development effort, use the showcase demo application.
Before you begin, make sure you meet the prerequisites in the quickstart.
Install in-app chat [#install-in-app-chat]
To install the in-app chat (the mobile version of Live Chat):
-
If you do not have one, create the mobile application profile:
- Go to Channels and Numbers → Channels → Mobile applications.
- On the Application profiles tab, select Create app profile.
- Under Select Application Type, select Sandbox for a testing profile or Production for a production profile.
- In Base configuration, enter the Name of the profile. Optionally, upload the App Icon (PNG or JPG) and add a Description.
- In Security settings, select the level of access that the mobile SDK has to Customer Profiles (People) data, and the Inbox authorization type.
- To enable push notifications, turn on the platforms that your application uses, for example, Available on Android Sandbox.
- Select Save.
For details about each setting, see Mobile application profile.
-
If you do not have one, create the Live Chat widget.
-
In the Live Chat widget configuration, go to Audience and availability → Mobile applications.
-
Select the mobile application profile that you created to connect it to the widget.
-
Select Save widget.
You can link only one mobile application profile to a Live Chat widget configuration.
After you connect the profile, complete the initial configuration for your platform. The following table lists the SDK and plugin pages:
The Cordova plugin is deprecated and does not receive further Live Chat features.
Then, enable and customize the in-app chat. You have two customization options:
- Widget settings: Configure the widget in the web interface. For example, see Appearance and Welcome messages.
- In-app customization: Customize the in-app chat view in the SDK. See Customize in-app chat.
Personalize and authenticate users [#personalize-and-authenticate-users]
Set up the user profile with the Mobile SDK for your platform. The following list links to the user profile configuration pages:
- iOS(opens in new tab)
- Android(opens in new tab)
- Huawei(opens in new tab)
- React Native(opens in new tab)
- Flutter(opens in new tab)
Authenticate mobile users in one of the following ways:
User personalization process [#user-personalization-process]
The following timeline shows the user personalization process from app installation to reinstallation:
User installs the app and launches it for the first time
The Mobile SDK starts and creates a pushRegistrationId. The pushRegistrationId is a unique app instance ID on the device, issued by Infobip. The Customer Profiles (People) data platform automatically creates a user profile and assigns the anonymous installation to it. To get the ID, see the guides for React Native(opens in new tab), iOS(opens in new tab), and Android(opens in new tab).
User authenticates in the mobile app
The user enters their credentials and passes 2FA. Infobip expects the personalize call with the user identity details. Customer Profiles (People) updates the user profile with these details, and the profile becomes personalized. One person profile in Customer Profiles (People) can have multiple connected devices. Infobip attaches a device to a profile through the personalize call and a key identity (phone number, email, or externalUserId), or through JWT authentication. See the Personalize API call.
User session ends and the user returns
The current session ends when the app is minimized. The user then comes back and passes a quick login to access the secure area of the app. The push notification arrives only if the session has ended and Moments is enabled. Infobip profiling remembers that the user belongs to the installation, so the personalize call is not needed.
User logs out
The user logs out explicitly and returns to the initial registration. On the logout event, Infobip expects the depersonalize call. The platform then detaches the device from the person and returns it to an anonymous installation state until the next personalize call. See the Depersonalize API call.
User uninstalls the mobile app
The Infobip SDK tracks uninstalls, but not in real time. It can take up to 48 hours after Infobip tracks the uninstall from the cloud service (APNS or FCM). Then, Infobip removes the pushRegistrationId from profiling with an uninstalled flag.
User installs the app again
The process starts again from step 1. The reinstalled app gets a different pushRegistrationId.
Test in-app chat [#test-in-app-chat]
Test the in-app chat experience with the Infobip showcase demo application for mobile devices. The test has the following stages:
- Download the showcase demo application.
- Link the showcase application to your widget configuration.
- Start a conversation in the demo application.
- Reply to the message in Inbox (Conversations).
Download the showcase demo application [#download-the-showcase-demo-application]
If you already installed the showcase application with the Demo application guide, go to Link the showcase application to your widget.
To download the showcase demo application:
- Log in to the web interface.
- Go to Channels and Numbers → Channels → Mobile applications.
- Select the Demo application tab. Alternatively, on the Overview tab, select Get started next to the demo application.
- In the Demo app card, select Show QR code.
- Scan the QR code with your mobile phone and install the demo application. The demo application supports iOS and Android.
- To let other people test the demo application, select Invite others to test and enter the recipients who receive an invitation.
Keep your mobile phone and the web interface open during the process. You switch between the demo application and the Infobip web interface in several steps.
Link the showcase application to your widget [#link-the-showcase-application-to-your-widget]
To check how the in-app chat works in practice, connect the Demo application mobile profile to your widget:
- Go to Channels and Numbers → Channels → Live Chat and select your widget.
- Go to Audience and availability → Mobile applications and select the demo application profile.
- Select Save widget to confirm the link between the mobile application profile and the widget configuration.
You can link only one mobile application profile to a widget configuration.
Start a conversation in the demo application [#start-a-conversation-in-the-demo-application]
After you link the demo application, a confirmation appears. Launch the showcase application to see the chat option. Then, start a conversation. On iOS and Android, select Chat in the navigation bar at the bottom of the screen.


The chat applies the color styles from your widget appearance settings automatically.
Reply to the message in Inbox (Conversations) [#reply-to-the-message-in-conversations]
All widgets connect to Inbox (Conversations), so you can test the in-app chat conversation as if you implemented the chat in your own application. Reply to the message from the agent workspace in Inbox (Conversations).
If the showcase application is not open on your device screen, you receive a push notification with the message.
Customize in-app chat [#customize-in-app-chat]
The Mobile SDK offers more customization options for the in-app chat, so that the chat matches the visual identity of your brand.
Customize the mobile Live Chat experience in the following ways:
- Customize the native message composer: Change the following elements:
- Attachment icon and behavior
- Sent message icon and behavior
- Colors, padding, shapes, background, and shadowing of the message composer
- Replace the message composer: Use a native composer instead.
For instructions, see the in-app chat customization page for your platform:
- iOS(opens in new tab)
- Android(opens in new tab)
- Huawei(opens in new tab)
- React Native(opens in new tab)
- Flutter(opens in new tab)
Authenticate mobile users
Authenticate in-app chat users and add JWT security.
Audience and availability
Control who sees the widget, where, and when.
Calls and screen sharing
Enable calls and screen sharing in Live Chat mobile.
Was this page helpful?