Before you begin
Before installing CometChatCalls for iOS, you need to create a CometChat application on the CometChat Dashboard, which comprises everything required in a chat service including users, groups, calls & messages. You will need theApp ID
, AuthKey
, Region
of your CometChat application when initializing the SDK.
i. Register on CometChat 🧑💻
- To install CometChatCalls for iOS, you need to first register on CometChat Dashboard. Click here to sign up.
- Create a new app
- Head over to the QuickStart or API & Auth Keys section and note the App ID, Auth Key, and Region.
Each CometChat application can be integrated with a single client app. Within the same application, users can communicate with each other across all platforms, whether they are on mobile devices or on the web.
Prerequisites
The minimum requirements for CometChatCalls for iOS are:macOS
Xcode
iOS 13.0 and later
Swift 5.0+
Get Started
You can start building a modern calling experience in your app by installing UIKit. This developer kit is an add-on feature to CometChat iOS SDK so installing it will also install the core Chat SDK.Step 1 : Create a project
To get started, openXcode
and create a new project.

Enter name, identifier and proceed.

Step 2 : Install CometChatProCalls Kit
You can install CometChatCalls for iOS through Swift Package Manager or CocoapodsCocoaPods
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 aPodfile
by running the following command.
CometChatCalls
framework through CocoaPods.
CometChatCalls
by command.
CometChatCallsSDK version
4.0.0
is compatible with 4.0.0
version of CometChatSDKSwift Package Manager
- Go to your Swift Package Manager’s File tab and select Add Packages.

- Add
CometChatProCalls
into yourPackage Repository
as below:
- To add the package, select Version Rules, enter Up to Exact Version,
4.1.2
, and click Next.

- Once, the package is added it will look like this.

Cocoa Pods
Go to root directory. (Where the .xcodeproj reside.) and perform these commands.Pod installation
NoteMake sure you replace the appId with your CometChat appId and region with your app region in the above code.
- pod init
- open -a Xcode Podfile
- pod ‘CometChatCallsSDK’, ‘4.1.2’
- For M1 Mac - arch -x86_64 pod install or For Intel Mac - pod install :::
Initialize CometChatProCalls
1. CallsAppSettings
Theinit()
method takes CallsAppSettings
as a parameter and user can set it by CallsAppSettingBuilder
. User should be first set the CallsAppSettings
.CallsAppSettings has 3 parametersappId
it is mandatory parameter.region
It is mandatory parameter.host
It is optional parameter.
- Swift
- Objective C