Skip to main content
Faster Integration with UI KitsIf you’re using CometChat UI Kits, voice and video calling can be quickly integrated:
  • Incoming & outgoing call screens
  • Call buttons with one-tap calling
  • Call logs with history
👉 iOS UI Kit Calling IntegrationUse this Calls SDK directly only if you need custom call UI or advanced control.
This guide walks you through installing the CometChat Calls SDK and initializing it in your iOS application.

Add the CometChat Dependency

Using CocoaPods

Add the CometChat Calls SDK to your Podfile:
Then run:

Using Swift Package Manager

  1. In Xcode, go to File > Add Package Dependencies
  2. Enter the repository URL: https://github.com/cometchat/cometchat-calls-sdk-ios
  3. Select the version and add to your target

Add Permissions

Add the required permissions to your Info.plist:
iOS requires you to provide a description for why your app needs camera and microphone access. These descriptions are shown to users when requesting permissions.

Enable Background Modes

For calls to continue when the app is in the background, enable the following background modes in your project’s Signing & Capabilities:
  1. Select your target in Xcode
  2. Go to Signing & Capabilities
  3. Click + Capability and add Background Modes
  4. Enable:
    • Audio, AirPlay, and Picture in Picture
    • Voice over IP (if using VoIP push notifications)

Initialize CometChat Calls

The init() method initializes the SDK with your app credentials. Call this method once when your application starts, typically in your AppDelegate or app entry point.

CallAppSettings

The CallAppSettings class configures the SDK initialization: