Connect Your Mobile App (Android / iOS)
Learn how to add a live chat widget on your custom mobile application to engage your users and deliver in-app customer support.
Before you start, you need to:
- Be an Admin on Revora.
- Have a mobile application.
Use Cases of Mobile App Plugin
Integrating your Mobile App with Revora will allow you to:
- Add a chat widget in your mobile app.
- Engage your app users with live conversations, including AI-powered chat.
- Push custom notifications on different app interfaces.
- Collect app feedback from users automatically.
- Use chatbots to create custom user journeys and automate repetitive queries.
- Manage messages, comments, and e-commerce orders from other platforms in the same inbox.
Add a Chat Plugin on your Mobile App
Step 1: Create a Mobile App Plugin Channel

- Go to Integration from the left navigation bar.
- Under Available Integrations, select Mobile App Plugin.
- A connection window will appear from the right. Click on Next.
- Upload a 256*256 px circle chat avatar, preferably your brand logo. This will appear on your mobile app chat preview.
- Add a title for your chat e.g., Revora Mobile Support. Note that the name will appear in public.
- Paste your website domain URL in the next field.
- Select a color for your chat, preferably your brand color.
- You can also add an NLP app to your live chat channel.
You should get something like this. Now, click Next. Here you’ll find the channel’s Token (access token), Primary ID and Platform ID. Save these — you’ll need all three in the next step.

Publishing the channel means that the channel is live, along with the automation rules you have set for the channel. Some users prefer to publish their channel after they complete the automation flow. If you are one of them, please turn off the toggle for now. You can always turn it back on.
Step 2: Get the App Chat URL
POST https://prod-api.myalice.ai/stable/bots/get_app_url
This API returns the customer-specific chat URL that you need to open in your app’s WebView (in-app browser). Make this request from your backend using the chat channel’s credentials.
Headers
| Name | Type | Required | Description |
|---|---|---|---|
| token | string | Yes | The channel’s access token, from your Revora dashboard. |
| Content-Type | string | Yes | application/json |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
| platform_id | integer | Yes | The numeric channel ID, from your dashboard. |
| primary_id | string | Yes | The channel’s string identifier, from your dashboard. This is not the customer ID. |
| unique_id | string | No | Customer lookup selector: "email" (with user_email) or "phone" (with user_phone). |
| user_email | string | No | Email to identify the logged-in user. |
| user_phone | string | No | Phone to identify the logged-in user. Normalized to digits. |
| user_name | string | No | User name to be stored on the customer. |
| user_meta | JSON object | No | Any extra customer details you want saved in the customer’s meta. |
Omit optional values you don’t use. platform_id, primary_id and token must all belong to the same chat channel.
Example Request
POST https://prod-api.myalice.ai/stable/bots/get_app_url
token: <CHANNEL_ACCESS_TOKEN>
Content-Type: application/json
{
"platform_id": 123,
"primary_id": "<CHANNEL_PRIMARY_ID>",
"user_email": "alex@example.com",
"unique_id": "email"
}
Replace 123 and <CHANNEL_PRIMARY_ID> with the IDs of your chat channel. The example email identifies the customer opening chat.
Response
{
"success": true,
"url": "<GENERATED_CHAT_URL>"
}{
"success": false,
"error": "Invalid Platform!"
}An invalid channel or mismatched credentials returns this error with HTTP 200. Always check the JSON success field, not only the HTTP status.
Keep the access token and the generated customer URL private. Don’t call this API from the client app or log the returned URL.
Step 3: Load the URL in your App
Check that success is true, then load the returned url unchanged in your app’s WebView. This opens the chat widget so the user can start a conversation.
AI mode (ai_app_messenger) is selected by the channel configuration — there is no AI-mode flag in the request.
User Management
There are two types of users: guest users and signed-in users. How the customer is matched depends on what you send:
unique_id="email"— looks up the customer byuser_email.unique_id="phone"— looks up the customer byuser_phone.unique_idomitted — matches on both email and phone when both are supplied, or on whichever one is supplied.- No email or phone — creates a new anonymous (guest) customer.
Signed-in users are recognized by email or phone, and their conversation history is synced accordingly. unique_id is a lookup selector, not an arbitrary ID. Use the optional customer fields and user_meta to pass extra information about the customer.
Receive Chat Events
The in-app chat sends events to your host app so you can handle link opening, downloads and notifications natively. There are two event types.
Link clicked
{ "type": "chatbot_file_link_clicked", "url": "https://example.com" }
Use url to open the link or download the asset. Validate the URL first. The widget also attempts to open the URL, so avoid opening it twice.
New agent or bot message
Text message excerpt (additional fields omitted):
{
"type": "widget_incoming_message",
"message": {
"source": "admin",
"dataV2": { "type": "text", "text": "Your order has shipped!" }
}
}
Read message.source and message.dataV2. source is admin (agent) or bot. Customer echoes and action events are excluded.
Message payload examples
These are illustrative message.dataV2 payloads. They sit inside the same widget_incoming_message event shown above; other message metadata is omitted.
{ "type": "text", "text": "Your order has shipped!" }Use button (singular) for the options array.
{
"success": true,
"error": "",
"type": "button",
"text": "Choose an option",
"button": [
{ "id": 1, "type": "postback", "title": "Yes", "value": "yes" },
{ "id": 2, "type": "url", "title": "Docs", "value": "https://example.com" }
]
}Use title and buttons (plural).
{
"success": true,
"error": "",
"type": "quick_reply",
"title": "Pick one",
"buttons": [
{ "id": 1, "type": "postback", "title": "Option A", "value": "a" }
]
}Read the file links from urls.
{
"success": true,
"error": "",
"type": "attachment",
"sub_type": "file",
"text": "Report",
"urls": ["https://example.com/report.pdf"],
"payload": ""
}Native app delivery
In in-app mode, the chat delivers events through the first available bridge:
ReactNativeWebView.postMessage(JSON.stringify(event))— React Nativewebkit.messageHandlers.chatbotBridge.postMessage(JSON.stringify(event))— iOS WKWebView (register a handler namedchatbotBridge)window.postMessage(event, "*")— fallback
The native bridges receive a JSON string; the window fallback receives an object. Parse strings once, validate the payload, and check the sender’s origin when using window messages.
Your native app code controls notifications. These events alone do not provide push notifications or guarantee delivery while the app is in the background.
Edit Mobile Chat Plugin Settings
From the Integration menu, select the Integrated tab. Here, you can view and manage your already connected channels.
Click on the triple dot (…) icon on each channel to edit channel settings, get the API key, disconnect or delete your channel.
From the edit menu, you can edit the following:
- Chat avatar
- Title or Preview Name
- Domain
- Chat color
