Skip to content

Latest commit

 

History

History
executable file
·
59 lines (41 loc) · 2.76 KB

README.md

File metadata and controls

executable file
·
59 lines (41 loc) · 2.76 KB

CometChat

iOS Sample App by CometChat

This reference application showcases the integration of CometChat's iOS UI Kit within an iOS framework. It provides developers with examples of implementing real-time messaging and voice and video calling features in their iOS-based applications.

🚀 Try the New v5 UI Kit!

Discover the all-new v5 UI Kit, featuring a completely revamped desigS for enhanced usability and visual appeal. With restructured components, advanced styling options, and a streamlined integration process, v5 offers a seamless, customizable experience tailored to your needs. Try it now and elevate your development workflow!

Prerequisites

  • Xcode
  • pod (CocoaPods)
  • Sign up for a CometChat account to get your app credentials: App ID, Region, and Auth Key

Installation

  1. Clone the repository:

    git clone https://github.com/cometchat/cometchat-sample-app-ios.git
    
  2. Navigate to the project directory:

      cd cometchat-sample-app-ios/CometChatSwift
  3. Install dependencies:

      pod install
  4. If you're facing any issues while installing pods then use the below command.

      pod install --repo-update
  5. In Xcode, open the project by opening cometchat-sample-app-ios/CometChatSwift.xcworkspace

  6. Enter your CometChat App ID, Region, and Auth Key in the CometChatSwift/AppConstants.swift file: https://github.com/cometchat/cometchat-uikit-ios/blob/056b60f4b8092a6a24df64e371e56879bbb77915/CometChatSwift/AppConstants.swift#L9-L13

  7. If your app is created before August 12th, 2024 then change the sample data URL to https://assets.cometchat.io/sampleapp/v1/sampledata.json in the CometChatSwift/Controllers/Login.swift file: https://github.com/cometchat/cometchat-uikit-ios/blob/056b60f4b8092a6a24df64e371e56879bbb77915/CometChatSwift/Controllers/Login.swift#L109-L111

  8. Run the app on a device or emulator.

Help and Support

For issues running the project or integrating with our UI Kits, consult our documentation or create a support ticket or seek real-time support via the CometChat Dashboard.