Before you begin
Before installing CometChatProCalls for iOS, you need to create a CometChat application on the CometChatPro 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 CometChatProCalls 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 CometChatProCalls for iOS are:macOSXcodeiOS 13.0 and laterSwift 5.0+
Get Started
You can start building a modern calling experience in your app by installing Pluto UIKit. This developer kit is an add-on feature to CometChatPro 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 CometChatProCalls 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.
- Swift
- Swift
CometChatCalls framework through CocoaPods.
- Swift
- Swift
CometChatCalls by command.
- Swift
CometChatCalls version
3.0.0 is compatible with 3.0.914 version of CometChatProSwift Package Manager
- Go to your Swift Package Manager’s File tab and select Add Packages.

- Add
CometChatProCallsinto your Package Repository as below:
- bash
- To add the package, select Version Rules, enter Up to Exact Version,
3.0.0, 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
- pod init
- open -a Xcode Podfile
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 parameters
appIdit is mandatory parameter.regionIt is mandatory parameter.hostIt is optional parameter.
- Swift
- Objective C
Make sure you replace the appId with your CometChat appId and region with your app region in the above code.
2. Init() Method
From the above CallAppSettings, pass the settings to the init() method.- Swift