diff --git a/calls/android/setup.mdx b/calls/android/setup.mdx index 9fa79656d..07f3cd2c8 100644 --- a/calls/android/setup.mdx +++ b/calls/android/setup.mdx @@ -180,7 +180,7 @@ The `CallAppSettings` class configures the SDK initialization: | Parameter | Type | Required | Description | |-----------|------|----------|-------------| | `appId` | String | Yes | Your CometChat App ID | -| `region` | String | Yes | Your app region (`us` or `eu`) | +| `region` | String | Yes | Your app region (`us`, `eu`, or `in`) | @@ -189,7 +189,7 @@ import com.cometchat.calls.core.CometChatCalls import com.cometchat.calls.core.CallAppSettings val appId = "APP_ID" // Replace with your App ID -val region = "REGION" // Replace with your Region ("us" or "eu") +val region = "REGION" // Replace with your Region ("us", "eu", or "in") val callAppSettings = CallAppSettings.CallAppSettingBuilder(appId, region).build() @@ -210,7 +210,7 @@ import com.cometchat.calls.core.CometChatCalls; import com.cometchat.calls.core.CallAppSettings; String appId = "APP_ID"; // Replace with your App ID -String region = "REGION"; // Replace with your Region ("us" or "eu") +String region = "REGION"; // Replace with your Region ("us", "eu", or "in") CallAppSettings callAppSettings = new CallAppSettings.CallAppSettingBuilder(appId, region).build(); diff --git a/deployment/dedicated-cloud.mdx b/deployment/dedicated-cloud.mdx new file mode 100644 index 000000000..e3308a03e --- /dev/null +++ b/deployment/dedicated-cloud.mdx @@ -0,0 +1,106 @@ +--- +title: "Dedicated Cloud Deployment" +sidebarTitle: "Dedicated Cloud" +description: "Run CometChat on a dedicated infrastructure stack that CometChat provisions and operates on Akamai Cloud or AWS, in the region your business requires — for tenant isolation, local data regulations, and regions the shared platform does not offer." +canonical: "https://www.cometchat.com/docs/deployment/dedicated-cloud" +--- + +Dedicated Cloud gives you a **dedicated infrastructure stack** that CometChat provisions and +operates for you, rather than the multi-tenant [Shared Cloud](/deployment/shared-cloud) platform. +CometChat still runs the infrastructure — you do not deploy or operate anything — but it is yours +alone, in the region you choose. + +It is sold as an add-on on **Enterprise** (Chat & Messaging), **Enterprise / Custom** (Voice & Video), **Plus** (AI Agents), and **Sandbox** and **Prime** (Bring Your Own Agent). Contact [sales](https://www.cometchat.com/contact-sales) to +scope it. + +## What you get + +- **A dedicated stack.** Your own infrastructure, not shared with other CometChat customers. +- **A region Shared Cloud does not offer.** Shared Cloud is US, EU, and IN. A dedicated stack can + be placed in an **Akamai Cloud** core compute region, or on **AWS** in the Region your deal + specifies — close to your users or wherever your regulator requires. +- **CometChat operates it.** Provisioning, upgrades, monitoring, and scaling stay with CometChat. + +## Supported regions + +CometChat provisions dedicated stacks on **two clouds — Akamai Cloud and AWS**. Both are +available; neither replaces the other. Which cloud and which region your stack uses is **scoped +with sales as part of your deal** — tell them where your users and your compliance obligations +are, and they will confirm the cloud and region before provisioning. + +The Akamai core regions are listed below. For AWS, the Region is agreed as part of your deal (see +[AWS](#aws)). + +### Akamai Cloud — core compute regions + +Akamai operates **33** core compute regions, and all of them are available: + +| Area | Regions | +| --- | --- | +| **North America** | Atlanta, GA (`us-southeast`) · Chicago, IL (`us-ord`) · Dallas, TX (`us-central`) · Fremont, CA (`us-west`) · Los Angeles, CA (`us-lax`) · Miami, FL (`us-mia`) · Newark, NJ (`us-east`) · Seattle, WA (`us-sea`) · Toronto, CA (`ca-central`) · Washington 2, DC (`us-iad-2`) · Washington, DC (`us-iad`) | +| **Europe** | Amsterdam, NL (`nl-ams`) · Frankfurt 2, DE (`de-fra-2`) · Frankfurt, DE (`eu-central`) · London 2, UK (`gb-lon`) · London, UK (`eu-west`) · Madrid, ES (`es-mad`) · Milan, IT (`it-mil`) · Paris 2, FR (`fr-par-2`) · Paris, FR (`fr-par`) · Stockholm, SE (`se-sto`) | +| **Asia-Pacific** | Chennai, IN (`in-maa`) · Jakarta, ID (`id-cgk`) · Melbourne, AU (`au-mel`) · Mumbai 2, IN (`in-bom-2`) · Mumbai, IN (`ap-west`) · Osaka, JP (`jp-osa`) · Singapore 2, SG (`sg-sin-2`) · Singapore, SG (`ap-south`) · Sydney, AU (`ap-southeast`) · Tokyo 2, JP (`ap-northeast`) · Tokyo 3, JP (`jp-tyo-3`) | +| **South America** | Sao Paulo, BR (`br-gru`) | + + +Akamai's separate *distributed* compute regions are **not** an option for a dedicated stack. Akamai +lists them under "Distributed compute regions (limited availability)" and has announced their +retirement effective **31 December 2026** — "You need to move your services out of these regions +before then." See +[Choose a data center](https://techdocs.akamai.com/cloud-computing/docs/choose-a-data-center) for +Akamai's own position. If you need somewhere that is not in the table above, +[talk to sales](https://www.cometchat.com/contact-sales) rather than assuming it. + + + +This region list is current as of December 2026. Akamai adds and retires regions over time, so +confirm your region with [sales](https://www.cometchat.com/contact-sales). + + +### AWS + +For AWS, the Region is agreed with sales as part of your deal; there is no fixed list. Tell +[sales](https://www.cometchat.com/contact-sales) the Region your users and your regulator require, +and they will confirm it before anything is signed. + +## When to choose it + +Choose Dedicated Cloud when at least one of these is true: + +- **You need a region Shared Cloud does not offer.** Shared Cloud is US, EU, and IN. If local data + regulations require storage elsewhere, a dedicated stack can be provisioned in an Akamai Cloud + core region or an AWS Region that satisfies them. +- **You need tenant isolation** for security review, procurement, or compliance reasons — your data + and compute are not co-resident with other customers. +- **You want low latency in a specific geography** without operating the platform yourself. + +If your data may not leave your own infrastructure at all, you want +[In Your Cloud](/deployment/in-your-cloud) or +[On-Premise](/on-premise-deployment/docker/overview) instead — with Dedicated Cloud, CometChat still +hosts the stack. + +## Uptime SLA + +An uptime SLA is bought separately from the deployment model: the **99.999% uptime SLA** is an +add-on on the plans that offer it, and its terms are set in the signed agreement. +See [Uptime SLA](/deployment/overview#uptime-sla) for which plans can add it, and +[pricing](https://www.cometchat.com/pricing) for the current list. + +## How to get it + +1. Contact [sales](https://www.cometchat.com/contact-sales) with your target region, expected + MAU and peak concurrent connections, and any compliance requirements. +2. CometChat scopes and provisions the stack. +3. You receive App credentials and endpoints for the dedicated stack and integrate as you would + against Shared Cloud. + + +The integration model is the same as Shared Cloud: your endpoints and credentials change, not your +integration code. Confirm the specifics for your deal — including whether a Shared Cloud to +Dedicated Cloud migration path applies to you and who runs it — with sales. + + +## Compare with the other options + +See [Deployment Options](/deployment/overview) for a side-by-side comparison of Shared Cloud, +Dedicated Cloud, In Your Cloud, and On-Premise. diff --git a/deployment/in-your-cloud.mdx b/deployment/in-your-cloud.mdx new file mode 100644 index 000000000..be7029cfc --- /dev/null +++ b/deployment/in-your-cloud.mdx @@ -0,0 +1,47 @@ +--- +title: "In Your Cloud Deployment" +sidebarTitle: "In Your Cloud" +description: "Run CometChat inside your own cloud account, so data and infrastructure stay within your organisation's boundary. Custom-priced and quoted by sales." +canonical: "https://www.cometchat.com/docs/deployment/in-your-cloud" +--- + +In Your Cloud runs CometChat **inside your own cloud account**, rather than on infrastructure +CometChat owns. Data and compute stay inside your organisation's boundary. + +It is **custom-priced**: there is no published price for it, and no self-serve path. +[Sales](https://www.cometchat.com/contact-sales) quotes it for your deployment, based on the cloud +you run in, your scale, and what you need CometChat to support. + +## What this gives you + +The platform runs on infrastructure in your own cloud account, deployed with the same tooling as an +on-premise install: + +- **Orchestration.** [Docker Swarm](/on-premise-deployment/docker/overview) for most workloads; + [Kubernetes](/on-premise-deployment/kubernetes/overview) for 200k+ MAU, 20k+ peak concurrent + connections, or multi-region active-active architectures. +- **You operate it.** Deployment, monitoring, backup, scaling, and upgrades are yours — see + [Monitoring](/on-premise-deployment/docker/monitoring), + [Persistence & Backup](/on-premise-deployment/docker/persistence-and-backup), + [Scaling](/on-premise-deployment/docker/scaling), and + [Upgrades](/on-premise-deployment/docker/upgrades). +- **Data residency is yours to set**, because you choose the cloud region you deploy into. + + +The deployment guides linked above are the on-premise guides, and they apply when you run CometChat +in your own cloud account — the deployment path is the same, so you can start with those guides +today. Sales will scope which arrangement fits your requirements. + + +## How to get it + +1. Contact [sales](https://www.cometchat.com/contact-sales) with the cloud and region you want to + deploy into, your expected MAU and peak concurrent connections, and any compliance requirements. +2. Sales scopes the deployment and quotes it. +3. You deploy with the [Docker Swarm](/on-premise-deployment/docker/overview) or + [Kubernetes](/on-premise-deployment/kubernetes/overview) guides into your own cloud account. + +## Compare with the other options + +See [Deployment Options](/deployment/overview) for a side-by-side comparison of Shared Cloud, +Dedicated Cloud, In Your Cloud, and On-Premise. diff --git a/deployment/overview.mdx b/deployment/overview.mdx new file mode 100644 index 000000000..74385fd36 --- /dev/null +++ b/deployment/overview.mdx @@ -0,0 +1,98 @@ +--- +title: "Deployment Options" +sidebarTitle: "Overview" +description: "Compare every way to run CometChat — Shared Cloud, Dedicated Cloud, In Your Cloud, and On-Premise — including supported regions, where your data lives, and which plan each option needs." +canonical: "https://www.cometchat.com/docs/deployment/overview" +--- + +CometChat runs in four deployment models. Most apps use **Shared Cloud** and never need to choose; +the other three exist for teams with data-residency, isolation, or regulatory requirements that the +shared platform cannot meet. + +## Compare the options + +| | [Shared Cloud](/deployment/shared-cloud) | [Dedicated Cloud](/deployment/dedicated-cloud) | [In Your Cloud](/deployment/in-your-cloud) \* | [On-Premise](/on-premise-deployment/docker/overview) | +| --- | --- | --- | --- | --- | +| **Who runs the infrastructure** | CometChat | CometChat | You | You | +| **Where your data lives** | A CometChat region you pick at app creation — **US**, **EU**, or **IN** | A dedicated stack in an **Akamai Cloud** core region, or the **AWS** Region your deal specifies | Your own cloud account | Your own servers or private cloud | +| **Tenancy** | Shared | Dedicated stack | Dedicated | Dedicated | +| **How you get it** | Included on every plan, self-serve | Add-on on selected plans, via sales ([which plans](#which-plan-each-option-needs)) | Custom-priced, quoted by sales | Add-on on selected plans, via sales ([which plans](#which-plan-each-option-needs)) | +| **Setup effort** | None — create an app and start building | CometChat provisions it | You deploy and operate it | You deploy and operate it | +| **Orchestration** | — | — | Docker Swarm or Kubernetes | Docker Swarm or Kubernetes | + +\* **In Your Cloud** is priced per deal rather than from a published add-on price; sales scopes and +quotes it. You deploy and operate it with the same tooling as an on-premise install — see +[In Your Cloud](/deployment/in-your-cloud). + + +**Not sure which you need?** If you have no explicit data-residency or isolation requirement, use +Shared Cloud and pick the region closest to your users. You can move to a dedicated or self-hosted +model later, but it is a migration, not a setting — plan it deliberately. + + +## Shared Cloud + +The default. CometChat operates the platform and you pick a data region when you create your app. +Every plan includes it, and it needs no provisioning: create an app in the +[dashboard](https://app.cometchat.com/) and you have an App ID, a region, and an endpoint. + +Three regions are available — **US**, **EU**, and **IN**. See +[Shared Cloud](/deployment/shared-cloud) for the region list, the per-region endpoints, and the +firewall domains each one uses. + +## Dedicated Cloud + +A dedicated infrastructure stack that CometChat provisions and operates for you on **Akamai Cloud** +or **AWS**, in a region you choose, for teams that need isolation from other tenants or a region the +shared platform does not offer. It is sold as an add-on; see [which plans](#which-plan-each-option-needs). + +Akamai Cloud's 33 core compute regions are published; for AWS the Region is named in your deal rather than chosen from a published list. + +See [Dedicated Cloud](/deployment/dedicated-cloud). + +## In Your Cloud + +CometChat deployed into your own cloud account, so the data and the infrastructure stay inside your +organisation's boundary while CometChat supports the software. It is **custom-priced** — there is no +published price for it; sales quotes it for your deployment. + +See [In Your Cloud](/deployment/in-your-cloud). + +## On-Premise + +The full platform on infrastructure you own and operate, behind your own firewall — including +air-gapped environments with no internet access. Deploy with **Docker Swarm** for most workloads, or +**Kubernetes** for very large or multi-region deployments. Sold as an add-on; see [which plans](#which-plan-each-option-needs). + + + + Recommended for most self-hosted deployments. Prerequisites, production deployment, air-gapped + installs, monitoring, security, backup, scaling, upgrades, and troubleshooting. + + + Recommended for 200k+ MAU, 20k+ peak concurrent connections, or multi-region active-active + architectures. + + + +## Which plan each option needs + +Shared Cloud is on every plan. Dedicated Cloud and On-Premise are add-ons on **Enterprise** (Chat & +Messaging), **Enterprise / Custom** (Voice & Video), **Plus** (AI Agents), and **Sandbox** and **Prime** +(Bring Your Own Agent); no other plan offers them. In Your Cloud is custom-priced. All three are bought through sales rather than self-serve. For the current +commercial position, see [CometChat pricing](https://www.cometchat.com/pricing). + +## Uptime SLA + +An uptime SLA depends on your **plan** and on whether you buy it, not on your deployment model. +Two separate things decide what you get: + +- **Availability — which plans can add it.** [CometChat pricing](https://www.cometchat.com/pricing) + lists a **99.999% uptime SLA as an add-on** on the plans that offer it; for Chat & Messaging + that is Advanced and Enterprise, and each product's pricing table shows its own plans. No plan includes it + by default, and a plan without the add-on has no published uptime commitment. +- **Terms — what the commitment means.** How uptime is measured, what is excluded, and any service + credits are set in the *signed* Service Level Agreement — the contractual document procurement, + empanelment and compliance reviews ask for. These docs don't define those terms; the add-on has + no published price, so the agreement is scoped with + [sales](https://www.cometchat.com/contact-sales). diff --git a/deployment/shared-cloud.mdx b/deployment/shared-cloud.mdx new file mode 100644 index 000000000..70fa300ca --- /dev/null +++ b/deployment/shared-cloud.mdx @@ -0,0 +1,102 @@ +--- +title: "Shared Cloud Deployment" +sidebarTitle: "Shared Cloud" +description: "CometChat's default deployment: pick a data region — US, EU, or IN — when you create your app, and get the per-region API, call signalling, and firewall endpoints for it." +canonical: "https://www.cometchat.com/docs/deployment/shared-cloud" +--- + +Shared Cloud is CometChat's default and is included on every plan. CometChat operates the platform; +you choose which **data region** your app lives in when you create it, and build against that +region's endpoints. + +## Supported regions + +CometChat's shared platform runs in **three regions**: + +| Region | Region code | REST API base URL | +| --- | --- | --- | +| United States | `us` | `https://.api-us.cometchat.io/v3` | +| European Union | `eu` | `https://.api-eu.cometchat.io/v3` | +| India | `in` | `https://.api-in.cometchat.io/v3` | + +Replace `` with your App ID. Your app's region is shown with its credentials in the +[dashboard](https://app.cometchat.com/). + + +Pick the region **closest to your users**. Region choice affects latency for every message, call +setup, and API call your app makes. + + + +**The region is fixed when the app is created, and cannot be changed afterwards.** There is no +setting, dashboard action or API call that moves an existing app to another region. Moving to a +different region means creating a new app in that region and migrating your data to it, which is +your migration to plan — users, groups and message history do not follow the app. + +So choose the region before you build, not after. If data residency is part of your requirements, +settle it first: it is the one decision on this page that is expensive to get wrong. + + +## Where the region appears in your code + +Every SDK takes the region code when you initialise it, alongside the App ID. The setter differs by +platform — these are the forms each platform's own setup guide uses, so they can be copied as shown: + +| Platform | How the region is set | Reference | +| --- | --- | --- | +| JavaScript | `new CometChat.AppSettingsBuilder().setRegion("us")` | [JavaScript SDK](/sdk/javascript/overview) | +| React Native | `new CometChat.AppSettingsBuilder().setRegion("us")` | [React Native SDK](/sdk/react-native/overview) | +| Android | `new AppSettings.AppSettingsBuilder().setRegion("us")` | [Android SDK](/sdk/android/overview) | +| iOS | `AppSettings.AppSettingsBuilder().setRegion(region: "us")` | [iOS SDK](/sdk/ios/overview) | +| Flutter | `(AppSettingsBuilder()..region = "us")` | [Flutter SDK](/sdk/flutter/overview) | +| Unreal | **CometChat Configure Async** node, `Region` pin | [Unreal SDK](/sdk/unreal/overview) | + +Always set the region. The Android, iOS and Flutter SDKs reject initialisation without one. The +JavaScript and React Native SDKs fall back to `eu`, so an app created in `us` or `in` that leaves the +region out sends its requests to the wrong region instead of failing at init. For the full +initialisation sequence on your platform, follow the reference link above or your +[UI Kit's getting-started guide](/ui-kit/react/overview). + +## Firewall and proxy allowlisting + +Build your allowlist from the [Network Allowlist](/fundamentals/network-allowlist) page. It lists +the hosts the SDKs, UI Kits and APIs use — client and admin REST, realtime, Calls REST, call +signalling, the TURN media relay, and the `cc-cluster-2.io` and `cc-edge-2.io` families — plus the +wildcard shortcut, the ports, and the inbound webhook requirement. + +Allow only the region or regions your apps actually run in. CometChat runs on elastic cloud +infrastructure, so **allowlist by domain, not by IP** — the IP addresses are not static and are not +published. + +## What the shared platform gives you + +Across all three regions, the shared platform provides: + +- **High-availability data centers in multiple regions**: the pricing page describes a + high-availability deployment across regions that guards against a regional cloud-service failure, + to provide maximum uptime. It publishes no failover behaviour or recovery time for this. A + contractual uptime commitment comes only from the 99.999% uptime SLA add-on and its signed + agreement (see [Uptime SLA](/deployment/overview#uptime-sla)). +- **A global edge network**, so end users connect at the edge rather than crossing the internet to + your app's home region on every request. + +Both are sold on every plan — see the Infrastructure rows on +[CometChat pricing](https://www.cometchat.com/pricing). + +Your app's endpoints are region-scoped: its REST, realtime and calling hosts carry your region code +(see the [Network Allowlist](/fundamentals/network-allowlist)). That says where requests are +addressed, not where data is processed or stored. If you have a **data-residency obligation** that needs a contractual answer about where data +is stored at rest, raise it with [sales](https://www.cometchat.com/contact-sales) — and see +[Dedicated Cloud](/deployment/dedicated-cloud) if your regulator requires a region the shared +platform does not offer. + +## When to move off Shared Cloud + +Shared Cloud suits almost every app. Consider another model when: + +- You need data stored in a region CometChat's shared platform does not offer → [Dedicated Cloud](/deployment/dedicated-cloud) +- You need infrastructure isolated from other tenants → [Dedicated Cloud](/deployment/dedicated-cloud) +- Your data may not leave your own cloud account → [In Your Cloud](/deployment/in-your-cloud) +- Your data may not leave your own network, or you need an air-gapped install → [On-Premise](/on-premise-deployment/docker/overview) + +See [Deployment Options](/deployment/overview) for the full comparison. diff --git a/docs.json b/docs.json index 9dfb359aa..15cc05ee9 100644 --- a/docs.json +++ b/docs.json @@ -40,56 +40,6 @@ "product": "Home", "hidden": true, "tabs": [ - { - "tab": "On-Premise Deployment", - "hidden": true, - "dropdowns": [ - { - "dropdown": "Docker", - "icon": "/images/icons/docker.svg", - "pages": [ - { - "group": "Getting Started", - "pages": [ - "on-premise-deployment/docker/overview", - "on-premise-deployment/docker/prerequisites", - "on-premise-deployment/docker/configuration-reference" - ] - }, - { - "group": "Deployment", - "pages": [ - "on-premise-deployment/docker/production-deployment", - "on-premise-deployment/docker/air-gapped-deployment" - ] - }, - { - "group": "Operations", - "pages": [ - "on-premise-deployment/docker/monitoring", - "on-premise-deployment/docker/security", - "on-premise-deployment/docker/persistence-and-backup" - ] - }, - { - "group": "Scaling & Maintenance", - "pages": [ - "on-premise-deployment/docker/scaling", - "on-premise-deployment/docker/upgrades", - "on-premise-deployment/docker/troubleshooting" - ] - } - ] - }, - { - "dropdown": "Kubernetes", - "icon": "/images/icons/kubernetes.svg", - "pages": [ - "on-premise-deployment/kubernetes/overview" - ] - } - ] - }, { "tab": "AI-Driven Development", "hidden": true, @@ -7067,6 +7017,74 @@ ] } ] + }, + { + "product": "Deployment", + "tabs": [ + { + "tab": "Deployment", + "pages": [ + { + "group": "Choose a deployment", + "pages": [ + "deployment/overview", + "deployment/shared-cloud", + "deployment/dedicated-cloud", + "deployment/in-your-cloud" + ] + } + ] + }, + { + "tab": "On-Premise", + "dropdowns": [ + { + "dropdown": "Docker", + "icon": "/images/icons/docker.svg", + "pages": [ + { + "group": "Getting Started", + "pages": [ + "on-premise-deployment/docker/overview", + "on-premise-deployment/docker/prerequisites", + "on-premise-deployment/docker/configuration-reference" + ] + }, + { + "group": "Deployment", + "pages": [ + "on-premise-deployment/docker/production-deployment", + "on-premise-deployment/docker/air-gapped-deployment" + ] + }, + { + "group": "Operations", + "pages": [ + "on-premise-deployment/docker/monitoring", + "on-premise-deployment/docker/security", + "on-premise-deployment/docker/persistence-and-backup" + ] + }, + { + "group": "Scaling & Maintenance", + "pages": [ + "on-premise-deployment/docker/scaling", + "on-premise-deployment/docker/upgrades", + "on-premise-deployment/docker/troubleshooting" + ] + } + ] + }, + { + "dropdown": "Kubernetes", + "icon": "/images/icons/kubernetes.svg", + "pages": [ + "on-premise-deployment/kubernetes/overview" + ] + } + ] + } + ] } ] }, diff --git a/rest-api/chat-apis.mdx b/rest-api/chat-apis.mdx index 48dacb434..316466a8c 100644 --- a/rest-api/chat-apis.mdx +++ b/rest-api/chat-apis.mdx @@ -112,6 +112,11 @@ https://.api-eu.cometchat.io/v3 https://.api-in.cometchat.io/v3 ``` +For the full picture — which region to pick, who to ask about data residency, firewall +allowlisting, and the dedicated and self-hosted alternatives — see +[Shared Cloud Deployment](/deployment/shared-cloud) and +[Deployment Options](/deployment/overview). + ## Network allowlist If your users or developers are behind a corporate firewall, proxy, or VPN, allow the CometChat diff --git a/sdk/android/overview.mdx b/sdk/android/overview.mdx index 82cd206f3..cf190cf93 100644 --- a/sdk/android/overview.mdx +++ b/sdk/android/overview.mdx @@ -117,7 +117,7 @@ The `AppSettings` class allows you to configure three settings: ```java String appID = "APP_ID"; // Replace with your App ID -String region = "REGION"; // Replace with your App Region ("eu" or "us") +String region = "REGION"; // Replace with your App Region ("us", "eu", or "in") AppSettings appSettings = new AppSettings.AppSettingsBuilder() .subscribePresenceForAllUsers() @@ -143,7 +143,7 @@ CometChat.init(this, appID, appSettings, new CometChat.CallbackListener ```kotlin val appID: String = "APP_ID" // Replace with your App ID -val region: String = "REGION" // Replace with your App Region ("eu" or "us") +val region: String = "REGION" // Replace with your App Region ("us", "eu", or "in") val appSettings = AppSettings.AppSettingsBuilder() .subscribePresenceForAllUsers() diff --git a/sdk/android/setup.mdx b/sdk/android/setup.mdx index aa7f30b0c..f368d7f66 100644 --- a/sdk/android/setup.mdx +++ b/sdk/android/setup.mdx @@ -103,7 +103,7 @@ We suggest you call the `init()` method on app startup. ```java private String appID = "APP_ID"; // Replace with your App ID -private String region = "REGION"; // Replace with your App Region ("eu" or "us") +private String region = "REGION"; // Replace with your App Region ("us", "eu", or "in") AppSettings appSettings= new AppSettings.AppSettingsBuilder() .subscribePresenceForAllUsers() @@ -129,7 +129,7 @@ CometChat.init(this, appID,appSettings, new CometChat.CallbackListener() ```kotlin val appID:String="APP_ID" // Replace with your App ID -val region:String="REGION" // Replace with your App Region ("eu" or "us") +val region:String="REGION" // Replace with your App Region ("us", "eu", or "in") AppSettings appSetting = AppSettings.AppSettingsBuilder() .setRegion(region) diff --git a/sdk/unreal/advanced-configuration.mdx b/sdk/unreal/advanced-configuration.mdx index ed8278fd1..739524601 100644 --- a/sdk/unreal/advanced-configuration.mdx +++ b/sdk/unreal/advanced-configuration.mdx @@ -38,7 +38,7 @@ void AMyActor::InitCometChat() | Property | Type | Default | Description | | -------- | ---- | ------- | ----------- | -| `Region` | `FString` | — | App region (`us` or `eu`) | +| `Region` | `FString` | — | App region (`us`, `eu`, or `in`) | | `SubscriptionType` | `FString` | — | Presence subscription type (`allUsers`, `roles`, `friends`) | | `Roles` | `TArray` | — | Roles to subscribe to (when `SubscriptionType` is `roles`) | | `AdminHost` | `FString` | — | Custom admin API host URL | diff --git a/sdk/unreal/reference.mdx b/sdk/unreal/reference.mdx index 6906f30d1..356562256 100644 --- a/sdk/unreal/reference.mdx +++ b/sdk/unreal/reference.mdx @@ -395,7 +395,7 @@ All delegates are `UPROPERTY(BlueprintAssignable)` on `UCometChatSubsystem`. The | Property | Type | Description | | -------- | ---- | ----------- | -| `Region` | `FString` | App region (`us` or `eu`) | +| `Region` | `FString` | App region (`us`, `eu`, or `in`) | | `SubscriptionType` | `FString` | Subscription type for presence | | `Roles` | `TArray` | Roles for presence subscription | | `AdminHost` | `FString` | Custom admin host URL | diff --git a/sdk/unreal/setup.mdx b/sdk/unreal/setup.mdx index 604432e83..15207d788 100644 --- a/sdk/unreal/setup.mdx +++ b/sdk/unreal/setup.mdx @@ -157,7 +157,7 @@ The `CometChatSubsystem` is a `UGameInstanceSubsystem` — it's created automati | Parameter | Type | Description | | --------- | ---- | ----------- | | App Id | `FString` | Your CometChat App ID | -| Region | `FString` | Your app region (`us` or `eu`) | +| Region | `FString` | Your app region (`us`, `eu`, or `in`) | **On Success** returns an `FCometChatUser`: - If a saved session was restored, the user details are populated (auto-login) diff --git a/sdk/unreal/ui-components.mdx b/sdk/unreal/ui-components.mdx index c68a88473..096117c74 100644 --- a/sdk/unreal/ui-components.mdx +++ b/sdk/unreal/ui-components.mdx @@ -68,7 +68,7 @@ void AMyHUD::BeginPlay() | Property | Type | Default | Description | | -------- | ---- | ------- | ----------- | | `AppId` | `FString` | — | Your CometChat App ID | -| `Region` | `FString` | `"us"` | App region (`us` or `eu`) | +| `Region` | `FString` | `"us"` | App region (`us`, `eu`, or `in`) | | `AuthKey` | `FString` | — | Your CometChat Auth Key | | `UserUid` | `FString` | — | UID of the user to log in as | diff --git a/ui-kit/android/methods.mdx b/ui-kit/android/methods.mdx index 4043eccbf..8deac4e1f 100644 --- a/ui-kit/android/methods.mdx +++ b/ui-kit/android/methods.mdx @@ -66,7 +66,7 @@ The `UIKitSettings` is an important parameter of the `init()` function. It serve | Method | Type | Description | | ------------------------------------ | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | **setAppId** | `String` | Sets the unique ID for the app, available on dashboard | -| **setRegion** | `String` | Sets the region for the app ('us' or 'eu') | +| **setRegion** | `String` | Sets the region for the app ('us', 'eu' or 'in') | | **setAuthKey** | `String` | Sets the auth key for the app, available on dashboard | | **subscribePresenceForAllUsers** | `String` | Sets subscription type for tracking the presence of all users | | **subscribePresenceForFriends** | `String` | Sets subscription type for tracking the presence of friends | diff --git a/ui-kit/angular/methods.mdx b/ui-kit/angular/methods.mdx index 832238cf9..e2683da06 100644 --- a/ui-kit/angular/methods.mdx +++ b/ui-kit/angular/methods.mdx @@ -20,7 +20,7 @@ Auth Key is for development/testing only. In production, generate Auth Tokens on | Method | Parameter | Description | |--------|-----------|-------------| | `setAppId(appId)` | `string` | Your CometChat App ID from the Dashboard | -| `setRegion(region)` | `string` | App region (e.g. `'us'`, `'eu'`) | +| `setRegion(region)` | `string` | App region — `'us'`, `'eu'`, or `'in'` | | `setAuthKey(authKey)` | `string` | Auth Key for dev/testing — use Auth Token in production | | `subscribePresenceForAllUsers()` | — | Subscribe to presence updates for all users | | `subscribePresenceForFriends()` | — | Subscribe to presence updates for friends only | diff --git a/ui-kit/angular/troubleshooting.mdx b/ui-kit/angular/troubleshooting.mdx index 3cfba7992..7d6106adc 100644 --- a/ui-kit/angular/troubleshooting.mdx +++ b/ui-kit/angular/troubleshooting.mdx @@ -1390,7 +1390,6 @@ async promptJoinGroup(): Promise { |------------|---------|-------|------------| | `ERR_NOT_INITIALIZED` | CometChat not initialized | `CometChatUIKit.init()` not called | Initialize CometChat before using components | | `ERR_ALREADY_INITIALIZED` | Already initialized | `CometChatUIKit.init()` called multiple times | Call init only once at app startup | -| `ERR_INVALID_REGION` | Invalid region | Wrong region code | Use correct region: 'us', 'eu', 'in', etc. | | `ERR_APP_SETTINGS_NOT_FOUND` | App settings not found | Missing app settings | Provide valid AppSettingsBuilder | ```typescript expandable @@ -1409,7 +1408,7 @@ async function initializeCometChat(): Promise { const UIKitSettings = new UIKitSettingsBuilder() .setAppId('YOUR_APP_ID') - .setRegion('us') // Valid: 'us', 'eu', 'in', 'ap-south', 'ap-southeast' + .setRegion('us') // Valid: 'us', 'eu', 'in' .setAuthKey('YOUR_AUTH_KEY') .subscribePresenceForAllUsers() .build(); @@ -1419,12 +1418,8 @@ async function initializeCometChat(): Promise { return true; } catch (error: any) { + // init() does not validate the region: a wrong or missing region is not reported here. console.error('CometChat initialization failed:', error); - - if (error.code === 'ERR_INVALID_REGION') { - console.error('Check your region setting. Valid regions: us, eu, in, ap-south, ap-southeast'); - } - return false; } } diff --git a/ui-kit/ios/methods.mdx b/ui-kit/ios/methods.mdx index 7b3cb152e..a408277ae 100644 --- a/ui-kit/ios/methods.mdx +++ b/ui-kit/ios/methods.mdx @@ -44,7 +44,7 @@ Replace **APP_ID**, **REGION**, and **AUTH_KEY** with your CometChat App ID, Reg | Method | Type | Description | | ------------------------------------ | ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------- | | **set(appID:)** | `String` | Sets the unique ID for the app, available on dashboard | -| **set(region:)** | `String` | Sets the region for the app ('us' or 'eu') | +| **set(region:)** | `String` | Sets the region for the app ('us', 'eu' or 'in') | | **set(authKey:)** | `String` | Sets the auth key for the app, available on dashboard | | **subscribePresenceForAllUsers** | `String` | Sets subscription type for tracking the presence of all users | | **subscribePresenceForFriends** | `String` | Sets subscription type for tracking the presence of friends | diff --git a/ui-kit/react-native/methods.mdx b/ui-kit/react-native/methods.mdx index 1755c16e2..0ea6fa9c3 100644 --- a/ui-kit/react-native/methods.mdx +++ b/ui-kit/react-native/methods.mdx @@ -51,7 +51,7 @@ import { CometChatUIKit, UIKitSettings } from "@cometchat/chat-uikit-react-nativ const uikitSettings = new UIKitSettings({ appId: "APP_ID", // Replace with your App ID - region: "REGION", // Replace with your App Region ("eu" or "us") + region: "REGION", // Replace with your App Region ("us", "eu", or "in") authKey: "AUTH_KEY", // Replace with your Auth Key (optional for Auth Token flow) }); @@ -569,7 +569,7 @@ CometChatUIKit.sendCustomInteractiveMessage(customMessage) | Property | Type | Description | | --- | --- | --- | | `appId` | `string` | The unique ID for the app, available on dashboard | -| `region` | `string` | The region for the app (`us` or `eu`) | +| `region` | `string` | The region for the app (`us`, `eu`, or `in`) | | `authKey` | `string` | The auth key for the app, available on dashboard | | `subscriptionType` | `string` | Sets user presence subscription for all users | | `autoEstablishSocketConnection` | `boolean` | Configure if web socket connections will be established automatically on app initialization (default: `true`) | diff --git a/ui-kit/react/overview.mdx b/ui-kit/react/overview.mdx index ea5f6979e..d03899cd9 100644 --- a/ui-kit/react/overview.mdx +++ b/ui-kit/react/overview.mdx @@ -80,7 +80,7 @@ Before integrating the UI Kit, ensure you have: - **Node.js 18+** installed - A **CometChat account** with the following credentials: - `appId` — your CometChat application ID - - `region` — your app region (e.g., `"us"` or `"eu"`) + - `region` — your app region (`"us"`, `"eu"`, or `"in"`) - `authKey` — your CometChat auth key (for client-side authentication) You can find these values in the [CometChat Dashboard](https://app.cometchat.com). diff --git a/web-shared/uikitsettings.mdx b/web-shared/uikitsettings.mdx index 664f783e2..2130cd7ac 100644 --- a/web-shared/uikitsettings.mdx +++ b/web-shared/uikitsettings.mdx @@ -10,7 +10,7 @@ UIKitSettings is pre-defined structure containing credentials required to initia | Name | Type | Description | | ----------------------------- | --------- | ------------------------------------------------------------------------------------------------------------------------- | | appId | string | Unique ID for the app, available on CometChat dashboard | -| region | string | Region for the app `us` or `eu` | +| region | string | Region for the app `us`, `eu` or `in` | | authKey | string | Auth key for the app, available on CometChat dashboard | | subscriptionType | string | Sets subscription type | | autoEstablishSocketConnection | bool | Configures web socket connections. When set to true, establishes connection automatically on app initialisation. |