CometChat Pro Documentation

You'll find comprehensive guides and documentation to help you start working with CometChat as quickly as possible. Let's jump right in!


An in-depth guide on how to configure CometChat.

Get your Application Keys

Signup for CometChat and then:

  1. Create a new app
  2. Head over to the API Keys section and note the Auth Key, App ID & Region


Minimum Requirement

  1. Xcode 11.4 (or Higher)
  2. iOS 11 or higher

Add the CometChat Dependency


We recommend using CocoaPods, as they are the most advanced way of managing iOS project dependencies. Open a terminal window, move to your project directory, and then create a Podfile by running the following command.



  1. CometChatPro SDK supports installation through Cocoapods only. Currently, we are supporting Xcode 11.4 and higher.

  2. CometChatPro SDK includes video calling components. We suggest you run on physical devices to avoid errors.

$ pod init

Add the following lines to the Podfile.

platform :ios, '11.0'

target 'MyApp' do
  pod 'CometChatPro', '2.1.2'

And then install the CometChatPro framework through CocoaPods.

$ pod install

Always get the latest version of CometChatPro by command

$ pod update CometChatPro

Extra steps for Objective C:

If you are integrating CometChat Pro iOS SDK in your Objective C app then you need to perform these two steps:

  1. Add below support files from the sample app:

Make sure you've selected ✅ Copy items if needed as well as 🔘 Create group options while adding the Library inside your project.

  1. Last step is to create a CometChatHeaderConstant.h file in your app and add the below line:
    #import <CometChatPro/CometChatPro-Swift.h>


We have used AlertController in the above mentioned file just to catch the error and show it in our sample app. You can replace it with you component used to handle error. Also wherever you are using CometChat Pro SDK methods you should add #import CometChatHeaderConstant.h in the .h file

3: Request Authorization

Prepare your app for this requirement by providing justification strings. The justification string is a localizable message that you add to your app's Info.plist file to tell the user why your app needs access to the user's photo library, Camera, Microphone. Then, App prompts the user to grant permission for access, the alert displays the justification string you provided, in the language of the locale selected on the user's device. You can do this as follows:

      <true />
    <string>$(PRODUCT_NAME) need access to the camera in order to update your avatar</string>
    <string>$(PRODUCT_NAME) need access to the Photo Library in order to send Media Messages</string>
    <string>$(PRODUCT_NAME) need access to the Microphone in order to connect Audio/Video call </string>

4: Follow these steps for the complete remaining integration


Publishing to App Store

To publish your App on App Store please follow this guide

Updated 20 days ago

What's Next



An in-depth guide on how to configure CometChat.

Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.