Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions calls/react-native/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# The Calls SDK plus its required peer dependencies
npm install @cometchat/calls-sdk-react-native@5
npm install @react-native-async-storage/async-storage@^2.1.2 react-native-background-timer@^2.4.1 \
react-native-performance@^5.1.2 react-native-svg@^15.12.0 react-native-url-polyfill@2.0.0 \
react-native-webrtc@124.0.7
react-native-performance@^5.1.2 react-native-svg@^15.12.0 react-native-url-polyfill@^2.0.0 \
react-native-webrtc@^124.0.7
```

```tsx theme={null}
Expand All @@ -38,7 +38,7 @@
</View>
```

* **Setup** (permissions, pods, Gradle) → [Setup](/calls/react-native/setup)

Check warning on line 41 in calls/react-native/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

calls/react-native/overview.mdx#L41

Did you really mean 'Gradle'?
* **Authentication** → [Authentication](/calls/react-native/authentication)
* **Join a session** → [Join Session](/calls/react-native/join-session)
* **Session settings** → [Session Settings](/calls/react-native/session-settings)
Expand All @@ -55,9 +55,9 @@
1. **CometChat Account**: [Sign up](https://app.cometchat.com/signup) and create an app to get your App ID, Region, and API Key
2. **CometChat Users**: Users must exist in CometChat to use calling features. For testing, create users via the [Dashboard](https://app.cometchat.com) or [REST API](/rest-api/users/create). Authentication is handled by the Calls SDK - see [Authentication](/calls/react-native/authentication)
3. **React Native Requirements**:
- React Native 0.71 or later (works with both the old architecture and the [New Architecture](/calls/react-native/setup#react-native-new-architecture), including bridgeless mode)

Check warning on line 58 in calls/react-native/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

calls/react-native/overview.mdx#L58

Did you really mean 'bridgeless'?
- Node.js 18 or later
- iOS: Minimum iOS 13.0, Xcode 14.0+
- Node.js: what your React Native version requires (22.13+ or 24.3+ for React Native 0.88)
- iOS: deployment target 15.1 or later (the minimum for React Native 0.76 and later); Xcode 16.1 or later (required since React Native 0.81)

Check warning on line 60 in calls/react-native/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

calls/react-native/overview.mdx#L60

Did you really mean 'Xcode'?
- Android: Minimum SDK API Level 24 (Android 7.0)
4. **Permissions**: Camera and microphone permissions for video/audio calls

Expand Down
20 changes: 10 additions & 10 deletions calls/react-native/setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
**Quick Reference for AI Agents & Developers**

```bash theme={null}
# The SDK plus its six REQUIRED peer dependencies — versions are pinned; do not float them
npm install @cometchat/calls-sdk-react-native@5.0.5
# The SDK plus its six REQUIRED peer dependencies — keep these declared peer ranges (the latest majors fall outside them)
npm install @cometchat/calls-sdk-react-native@5
npm install @react-native-async-storage/async-storage@^2.1.2 react-native-background-timer@^2.4.1 \
react-native-performance@^5.1.2 react-native-svg@^15.12.0 react-native-url-polyfill@2.0.0 \
react-native-webrtc@124.0.7
react-native-performance@^5.1.2 react-native-svg@^15.12.0 react-native-url-polyfill@^2.0.0 \
react-native-webrtc@^124.0.7
cd ios && pod install && cd ..
```

Expand All @@ -40,7 +40,7 @@
```

* Android 6.0+ **also needs a runtime permission request** — a manifest entry alone is not enough
* Works on the old architecture **and** the New Architecture, including bridgeless — no extra setup

Check warning on line 43 in calls/react-native/setup.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

calls/react-native/setup.mdx#L43

Did you really mean 'bridgeless'?
* **Next** → [Authentication](/calls/react-native/authentication) → [Join Session](/calls/react-native/join-session)
</Info>

Expand All @@ -51,13 +51,13 @@
### Using npm

```bash
npm install @cometchat/calls-sdk-react-native@5.0.5
npm install @cometchat/calls-sdk-react-native@5
```

### Using Yarn

```bash
yarn add @cometchat/calls-sdk-react-native@5.0.5
yarn add @cometchat/calls-sdk-react-native@5
```

## Install Required Dependencies
Expand All @@ -70,27 +70,27 @@
| `react-native-background-timer` | `^2.4.1` |
| `react-native-performance` | `^5.1.2` |
| `react-native-svg` | `^15.12.0` |
| `react-native-url-polyfill` | `2.0.0` |
| `react-native-webrtc` | `124.0.7` |
| `react-native-url-polyfill` | `^2.0.0` |
| `react-native-webrtc` | `^124.0.7` |

### Using npm

```bash
npm install @react-native-async-storage/async-storage@^2.1.2 react-native-background-timer@^2.4.1 react-native-performance@^5.1.2 react-native-svg@^15.12.0 react-native-url-polyfill@2.0.0 react-native-webrtc@124.0.7
npm install @react-native-async-storage/async-storage@^2.1.2 react-native-background-timer@^2.4.1 react-native-performance@^5.1.2 react-native-svg@^15.12.0 react-native-url-polyfill@^2.0.0 react-native-webrtc@^124.0.7
```

### Using Yarn

```bash
yarn add @react-native-async-storage/async-storage@^2.1.2 react-native-background-timer@^2.4.1 react-native-performance@^5.1.2 react-native-svg@^15.12.0 react-native-url-polyfill@2.0.0 react-native-webrtc@124.0.7
yarn add @react-native-async-storage/async-storage@^2.1.2 react-native-background-timer@^2.4.1 react-native-performance@^5.1.2 react-native-svg@^15.12.0 react-native-url-polyfill@^2.0.0 react-native-webrtc@^124.0.7
```

## React Native New Architecture

The Calls SDK works with both the old architecture and the New Architecture, including bridgeless mode. No extra setup is needed — leave `newArchEnabled` set to whatever your app requires and follow the same integration steps either way.

Check warning on line 90 in calls/react-native/setup.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

calls/react-native/setup.mdx#L90

Did you really mean 'bridgeless'?

<Note>
The SDK ships as a legacy native module rather than a TurboModule/Fabric component. On the New Architecture it runs through React Native's built-in interop layer, so the API and behavior are identical on both architectures.

Check warning on line 93 in calls/react-native/setup.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

calls/react-native/setup.mdx#L93

Did you really mean 'interop'?
</Note>

## Expo
Expand All @@ -105,7 +105,7 @@
</Warning>

`react-native-webrtc` ships no Expo config plugin, so declare the native configuration in `app.json`
rather than editing `Info.plist` and `AndroidManifest.xml` by hand — a prebuild regenerates those files

Check warning on line 108 in calls/react-native/setup.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

calls/react-native/setup.mdx#L108

Did you really mean 'prebuild'?
and discards manual edits:

```json theme={null}
Expand Down Expand Up @@ -151,7 +151,7 @@

For calls to continue when the app is in the background:

1. Open your project in Xcode

Check warning on line 154 in calls/react-native/setup.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

calls/react-native/setup.mdx#L154

Did you really mean 'Xcode'?
2. Select your target and go to **Signing & Capabilities**
3. Click **+ Capability** and add **Background Modes**
4. Enable:
Expand Down
37 changes: 21 additions & 16 deletions mcp-server.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
pick the right components for your stack, and write the integration code.

The server is **read-only** and **needs no account or API key** — it surfaces
CometChat's public documentation and curated implementation recipes.
CometChat's public documentation, including implementation bundles compiled from
the current quickstart pages.

## Connector URL

Expand Down Expand Up @@ -85,7 +86,7 @@
- *"Let project members talk in a group chat with file sharing."*
- *"Add video calling between two users with a click-to-call button."*
- *"Set up content moderation so banned words are blocked before delivery."*
- *"Build a multi-tenant SaaS chat where each workspace's users are isolated."*

Check warning on line 89 in mcp-server.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

mcp-server.mdx#L89

Did you really mean 'workspace's'?
- *"Add presence indicators and typing dots to my conversation list."*

The agent will search the docs, pull the matching implementation bundle,
Expand All @@ -109,25 +110,29 @@
target framework, so the agent can pick the right one.
</Card>
<Card title="get_cometchat_implementation_bundle" icon="box-open">
Return a curated implementation recipe — prerequisites, install,
configuration, working code — for a named scenario.
Return the docs pages for a named scenario compiled into one document:
for a UI Kit, its integration guide and AI reference page; for the SDK,
moderation, multi-tenancy and widget bundles, the pages listed below.
</Card>
</CardGroup>

### Ten curated implementation bundles
### Implementation bundles

| Bundle | What it covers |
Each bundle is compiled from the current pages of these docs, so it always matches what the docs say.

| Bundle | Built from |
| --- | --- |
| `react-uikit-quickstart` | React UI Kit install, init, login, conversations list, chat window |
| `react-native-uikit-quickstart` | React Native UI Kit install, navigation, basic chat screen |
| `flutter-uikit-quickstart` | Flutter UI Kit install, init, login, basic chat |
| `ios-uikit-quickstart` | iOS UI Kit (SwiftUI) install, init, login, chat view |
| `android-uikit-quickstart` | Android UI Kit (Compose) install, init, login, chat screen |
| `js-sdk-messaging-basics` | Vanilla JS SDK install, send/receive text and media messages |
| `widget-embed` | No-code widget embed for an existing site |
| `moderation-setup` | AI moderation, profanity filter, image moderation, webhooks |
| `multi-tenant-chat` | Multi-tenant SaaS chat — auth, isolation, tenant-scoped users |
| `presence-and-typing` | Online presence, typing indicators, read receipts |
| `react-uikit-quickstart` | [React integration](/ui-kit/react/integration-react) and the React AI reference page |
| `react-native-uikit-quickstart` | [React Native CLI integration](/ui-kit/react-native/react-native-cli-integration) and the React Native AI reference page |
| `angular-uikit-quickstart` | [Angular integration](/ui-kit/angular/integration) and the Angular AI reference page |
| `flutter-uikit-quickstart` | [Flutter getting started](/ui-kit/flutter/getting-started) and the Flutter AI reference page |
| `ios-uikit-quickstart` | [iOS integration](/ui-kit/ios/getting-started) and the iOS AI reference page |
| `android-uikit-quickstart` | [Android getting started](/ui-kit/android/getting-started), the [Jetpack Compose guide](/ui-kit/android/getting-started-jetpack), and the Android AI reference page |
| `js-sdk-messaging-basics` | JavaScript SDK [setup](/sdk/javascript/setup-sdk), [send](/sdk/javascript/send-message) and [receive](/sdk/javascript/receive-message) messages |
| `presence-and-typing` | JavaScript SDK [presence](/sdk/javascript/user-presence), [typing indicators](/sdk/javascript/typing-indicators) and [receipts](/sdk/javascript/delivery-read-receipts) |
| `moderation-setup` | [Moderation getting started](/moderation/getting-started) |
| `multi-tenant-chat` | [Multi-tenancy](/fundamentals/multi-tenancy) |
| `widget-embed` | [Widget HTML integration](/widget/html/integration) |

### Orientation skill resource

Expand All @@ -138,7 +143,7 @@
## Source

The MCP server is open-source at
[`github.com/cometchat/cometchat-mcp`](https://github.com/cometchat/docs-mcp).
[`github.com/cometchat/docs-mcp`](https://github.com/cometchat/docs-mcp).
Built from this very documentation repository, so the content it surfaces
is always in sync with what you see on the docs site.

Expand Down
7 changes: 4 additions & 3 deletions sdk/react-native/llms-react-native-v4.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@
## Platform rules — headless, and React Native
This is the **SDK**, not the UI Kit: it ships no components. You own every view. Also:
- **`@react-native-async-storage/async-storage` is required** — the SDK persists session state
through it and ships it as a direct dependency, so RN autolinking needs it present and
pod-installed. On Android, async-storage v3 also needs the `local_repo` Maven entry in
`android/build.gradle` or the build fails.
through it at runtime but doesn't declare it as a dependency, so install it yourself and
pod-install. Install `@react-native-async-storage/async-storage@^2.1.2` (the range the
Calls SDK declares). No extra Gradle repository is needed: 2.x autolinks, so do not add

Check warning on line 37 in sdk/react-native/llms-react-native-v4.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/llms-react-native-v4.mdx#L37

Did you really mean 'Gradle'?

Check warning on line 37 in sdk/react-native/llms-react-native-v4.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/llms-react-native-v4.mdx#L37

Did you really mean 'autolinks'?
the old `local_repo` Maven entry.
- **No DOM.** There is no `window`/`document`/`localStorage`; render with React Native
primitives and drive them from the listener callbacks below.
- **Listeners must be removed on unmount.** Every `add*Listener(id, …)` needs the matching

Check warning on line 41 in sdk/react-native/llms-react-native-v4.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/llms-react-native-v4.mdx#L41

Did you really mean 'unmount'?
`remove*Listener(id)` — leaked listeners are the top source of duplicate-message bugs.
- Building UI from scratch is a lot of work. If the goal is "add chat", prefer the
[React Native UI Kit](/ui-kit/react-native/overview) and drop to this SDK only for custom UI
Expand Down
6 changes: 3 additions & 3 deletions sdk/react-native/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
```

**Credentials:** App ID, Region, Auth Key from [CometChat Dashboard](https://app.cometchat.com)
**Test UIDs:** `cometchat-uid-1` through `cometchat-uid-5`

Check warning on line 34 in sdk/react-native/overview.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/overview.mdx#L34

Did you really mean 'UIDs'?
</Accordion>

The CometChat React Native SDK lets you add real-time messaging, voice, and video calling to any React Native application.
Expand All @@ -41,10 +41,10 @@
| Requirement | Minimum Version |
|-------------|-----------------|
| npm | 8.x |
| Node.js | 16 |
| React Native | 0.63 |
| Node.js | What your React Native version requires (22.13+ or 24.3+ for 0.88). The SDK declares no Node.js requirement of its own |
| React Native | 0.65 |
| Android minSdkVersion | 24 |
| iOS | 11.0 |
| iOS deployment target | What your React Native version requires (15.1 for 0.76 and later; the Calls SDK needs 15.1) |

## Getting Started

Expand Down
60 changes: 22 additions & 38 deletions sdk/react-native/setup-sdk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


```bash
npm install @cometchat/chat-sdk-react-native @react-native-async-storage/async-storage
npm install @cometchat/chat-sdk-react-native @react-native-async-storage/async-storage@^2.1.2
```

```typescript
Expand All @@ -36,7 +36,7 @@
await CometChat.login("UID", "AUTH_KEY"); // dev only
```

**Prerequisites:** npm 8+, Node.js 16+, React Native 0.63+, credentials from [CometChat Dashboard](https://app.cometchat.com)
**Prerequisites:** npm 8+, the Node.js version your React Native release requires (22.13+ or 24.3+ for 0.88), React Native 0.65+ (async-storage 2.x needs it), credentials from [CometChat Dashboard](https://app.cometchat.com)

</Accordion>

Expand All @@ -45,10 +45,10 @@
| Requirement | Version |
|-------------|---------|
| npm | 8.x or above |
| Node.js | 16 or above |
| React Native | 0.63 or above |
| Node.js | What your React Native version requires (22.13+ or 24.3+ for 0.88). The SDK declares no Node.js requirement of its own |
| React Native | 0.65 or above (`@react-native-async-storage/async-storage` 2.x needs it) |
| Android minSdkVersion | 24 |
| iOS | 11.0 |
| iOS deployment target | What your React Native version requires: 15.1 for 0.76 and later. The Calls SDK needs 15.1 |

Get your credentials from the [CometChat Dashboard](https://app.cometchat.com):
- App ID
Expand All @@ -69,46 +69,30 @@
npm install @cometchat/chat-sdk-react-native
```

The React Native SDK requires `async-storage` as a peer dependency:
The React Native SDK needs `async-storage` at runtime but doesn't declare it, so install it yourself:

```bash
npm install @react-native-async-storage/async-storage
npm install @react-native-async-storage/async-storage@^2.1.2
```

<Warning>
**Android only:** `@react-native-async-storage/async-storage` v3 ships a local Maven artifact. Add this to your `android/build.gradle` or the Android build will fail:

```gradle
allprojects {
repositories {
google()
mavenCentral()
maven {
url = uri(project(":react-native-async-storage_async-storage").file("local_repo"))
}
}
}
```
</Warning>
<Note>
**No extra Gradle repository is needed.** Async-storage 2.x autolinks like any native module, so the old `local_repo` Maven entry in `android/build.gradle` is not required. The `^2.1.2` range is also what the Calls SDK declares, so the same install works if you add calling later.

Check warning on line 79 in sdk/react-native/setup-sdk.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/setup-sdk.mdx#L79

Did you really mean 'Gradle'?

Check warning on line 79 in sdk/react-native/setup-sdk.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/setup-sdk.mdx#L79

Did you really mean 'autolinks'?
</Note>

### Voice & Video Calling (Optional)

v2.4+ onwards, calling functionality lives in a separate package. Install it only if you need voice/video:

Check warning on line 84 in sdk/react-native/setup-sdk.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/setup-sdk.mdx#L84

Did you really mean 'onwards'?

```bash
npm install @cometchat/calls-sdk-react-native
npm install @cometchat/calls-sdk-react-native \
react-native-webrtc@^124.0.7 \
react-native-background-timer@^2.4.1 \
react-native-performance@^5.1.2 \
react-native-url-polyfill@^2.0.0 \
react-native-svg@^15.12.0
```

Required additional dependencies for calling:

```json
{
"@react-native-community/netinfo": "^11.3.1",
"react-native-background-timer": "^2.4.1",
"react-native-callstats": "^3.73.7",
"react-native-webrtc": "^1.106.1"
}
```
These are the Calls SDK's peer dependencies at the ranges it declares (`@react-native-async-storage/async-storage` ^2.1.2 is the sixth, already installed above); unpinned latest majors fail with `ERESOLVE`. See [Calls SDK setup](/calls/react-native/setup) for the full calling setup.

<Tabs>
<Tab title="Android">
Expand All @@ -134,15 +118,13 @@
}
```

Ensure `minSdkVersion` is set to **24** in the `buildscript` ext block:
Ensure `minSdkVersion` is at least **24** in the `buildscript` ext block. Keep the `compileSdkVersion`, `targetSdkVersion` and `buildToolsVersion` your React Native template sets; don't lower them:

```gradle
buildscript {
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 24
compileSdkVersion = 29
targetSdkVersion = 29
// compileSdkVersion, targetSdkVersion, buildToolsVersion: as generated
}
}
```
Expand All @@ -160,7 +142,9 @@
Update the minimum platform version in your Podfile:

```ruby
platform :ios, '11.0'
# The React Native template's minimum (15.1 on React Native 0.76 and later);
# raise it if a dependency needs more. The Calls SDK needs 15.1.
platform :ios, min_ios_version_supported
```

Then run `pod install` in the `ios` directory.
Expand Down Expand Up @@ -227,7 +211,7 @@
.build();

try {
await CometChat.init(appID, appSetting);

Check warning on line 214 in sdk/react-native/setup-sdk.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

sdk/react-native/setup-sdk.mdx#L214

Did you really mean 'appSetting'?
console.log("Initialization completed successfully");
} catch (error) {
console.log("Initialization failed with error:", error);
Expand Down
8 changes: 4 additions & 4 deletions ui-kit/android/call-features.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| Field | Value |
| --- | --- |
| Kotlin (XML Views) | `com.cometchat:chatuikit-kotlin-android` + `com.cometchat:calls-sdk-android` |
| Jetpack Compose | `com.cometchat:chatuikit-compose-android` + `com.cometchat:calls-sdk-android` |

Check warning on line 11 in ui-kit/android/call-features.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/call-features.mdx#L11

Did you really mean 'Jetpack'?
| Required setup | `CometChatUIKit.init()` then `CometChatUIKit.login()` — Calls SDK must also be installed |
| Call features | Incoming Call, Outgoing Call, Call Logs, Call Buttons, Ongoing Call |
| Key components | `CometChatCallButtons`, `CometChatIncomingCall`, `CometChatOutgoingCall`, `CometChatCallLogs`, `CometChatOngoingCall` |
Expand All @@ -33,17 +33,17 @@
<Tab title="Kotlin (XML Views)">
```kotlin build.gradle.kts
dependencies {
implementation("com.cometchat:chatuikit-kotlin-android:6.0.6")
implementation("com.cometchat:calls-sdk-android:5.0.1")
implementation("com.cometchat:chatuikit-kotlin-android:6.1.1")
implementation("com.cometchat:calls-sdk-android:5.0.4")
}
```
</Tab>

<Tab title="Jetpack Compose">
```kotlin build.gradle.kts
dependencies {
implementation("com.cometchat:chatuikit-compose-android:6.0.6")
implementation("com.cometchat:calls-sdk-android:5.0.1")
implementation("com.cometchat:chatuikit-compose-android:6.1.1")
implementation("com.cometchat:calls-sdk-android:5.0.4")
}
```
</Tab>
Expand Down
2 changes: 1 addition & 1 deletion ui-kit/android/call-logs.mdx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
title: "Call Logs"
description: "Scrollable list of call logs for the logged-in user with caller names, avatars, call status, and timestamps."

Check warning on line 3 in ui-kit/android/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/call-logs.mdx#L3

Did you really mean 'Scrollable'?
---

`CometChatCallLogs` renders a scrollable list of call logs for the logged-in user with caller names, avatars, call status indicators, and timestamps.

Check warning on line 6 in ui-kit/android/call-logs.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/call-logs.mdx#L6

Did you really mean 'scrollable'?

<Frame>
<img src="/images/7fe2a6db-call_logs-7b4f502153923374898f3887441ab8d2.png" />
Expand All @@ -27,7 +27,7 @@

```kotlin
// app/build.gradle.kts
implementation("com.cometchat:calls-sdk-android:5.0.+")
implementation("com.cometchat:calls-sdk-android:5.0.4")
```
```json
// app/src/main/assets/cometchat-settings.json — this is what makes the UI Kit init CometChatCalls
Expand Down
8 changes: 4 additions & 4 deletions ui-kit/android/calling-integration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,17 @@
<Tab title="Kotlin (XML Views)">
```kotlin build.gradle.kts
dependencies {
implementation("com.cometchat:chatuikit-kotlin-android:6.0.6")
implementation("com.cometchat:calls-sdk-android:5.0.1")
implementation("com.cometchat:chatuikit-kotlin-android:6.1.1")
implementation("com.cometchat:calls-sdk-android:5.0.4")
}
```
</Tab>

<Tab title="Jetpack Compose">
```kotlin build.gradle.kts
dependencies {
implementation("com.cometchat:chatuikit-compose-android:6.0.6")
implementation("com.cometchat:calls-sdk-android:5.0.1")
implementation("com.cometchat:chatuikit-compose-android:6.1.1")
implementation("com.cometchat:calls-sdk-android:5.0.4")
}
```
</Tab>
Expand All @@ -62,7 +62,7 @@
</Tab>

<Tab title="Jetpack Compose">
The `CometChatMessageHeader` composable hides the call buttons by default (`hideVoiceCallButton` and `hideVideoCallButton` both default to `true`). Show them explicitly:

Check warning on line 65 in ui-kit/android/calling-integration.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/calling-integration.mdx#L65

Did you really mean 'composable'?

```kotlin
CometChatMessageHeader(
Expand All @@ -75,7 +75,7 @@
</Tabs>

<Warning>
**Enabling calling in an app that already has logged-in users requires a re-login.** `CometChatUIKit.login()` short-circuits when the same uid already has a persisted session — it returns `onSuccess` without logging the Calls SDK in, so the Calls SDK has no auth token and `CometChatCallLogs` shows a silent error state (logcat: `User auth token cannot be null`). After calling is first enabled, log out and log in again (`CometChatUIKit.logout(...)` then `CometChatUIKit.login(...)`), and wire `onError` on `CometChatCallLogs` during development so this failure is visible.

Check warning on line 78 in ui-kit/android/calling-integration.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/calling-integration.mdx#L78

Did you really mean 'uid'?

Check warning on line 78 in ui-kit/android/calling-integration.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/calling-integration.mdx#L78

Did you really mean 'logcat'?
</Warning>

<Frame>
Expand Down
2 changes: 1 addition & 1 deletion ui-kit/android/conversation-message-view.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Building A Conversation List + Message View"
sidebarTitle: "Conversation List + Message View"
description: "Build a conversation list with a full-screen message view using the Kotlin XML Views or Jetpack Compose UI Kit."

Check warning on line 4 in ui-kit/android/conversation-message-view.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/conversation-message-view.mdx#L4

Did you really mean 'Jetpack'?
---

<Accordion title="AI Integration Quick Reference">
Expand Down Expand Up @@ -110,7 +110,7 @@
</Tab>
<Tab title="Jetpack Compose">

Create a `ChatApp.kt` file with the root composable that manages navigation between the conversation list and message screen:

Check warning on line 113 in ui-kit/android/conversation-message-view.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/conversation-message-view.mdx#L113

Did you really mean 'composable'?

```kotlin ChatApp.kt lines
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -148,7 +148,7 @@
}
```

Add the `ConversationsScreen` composable:

Check warning on line 151 in ui-kit/android/conversation-message-view.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/conversation-message-view.mdx#L151

Did you really mean 'composable'?

```kotlin ChatApp.kt lines
import androidx.compose.foundation.layout.fillMaxSize
Expand Down Expand Up @@ -284,7 +284,7 @@
</Tab>
<Tab title="Jetpack Compose">

Add the `MessageScreen` composable with header, list, and composer stacked vertically:

Check warning on line 287 in ui-kit/android/conversation-message-view.mdx

View check run for this annotation

Mintlify / Mintlify Validation (cometchat-22654f5b) - vale-spellcheck

ui-kit/android/conversation-message-view.mdx#L287

Did you really mean 'composable'?

```kotlin ChatApp.kt lines
import androidx.compose.foundation.layout.Column
Expand Down Expand Up @@ -358,7 +358,7 @@
<Tabs>
<Tab title="Kotlin (XML Views)">

Update your `MainActivity` to launch `ConversationActivity` after successful login:
Update your `MainActivity` to launch `ConversationActivity` after successful login, and add `import android.content.Intent`:

```kotlin MainActivity.kt lines
private fun loginUser() {
Expand Down
Loading
Loading