Skip to content

cometchat-pro/cometchat-chat-sample-app-ios-swift

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 



Note

Version 4 CometChat UI Kits

We’ve introduced a major update to CometChat UI kits. Version 4 features a modular architecture that gives you enhanced flexibility to build and customize your web and mobile apps. Please switch to the branch v4 to check out the sample app based on this version. Visit our documentation to read more about this.

iOS Swift Chat App







CometChat Kitchen Sink Sample App (built using CometChat UIKit) is a fully functional messaging app capable of one-on-one (private) and group messaging as well as Calling. This sample app enables users to send text and multimedia messages like images, videos, documents. Also, users can make Audio and Video calls to other users or groups.


Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed the latest version of Xcode. (Above Xcode 12 Recommended)

  • iOS Swift Chat App works for the iOS devices from iOS 11 and above.

NOTE: Please install the latest pod version on your Mac to avoid integration issues

Please follow the below steps:

sudo gem update cocoapods --pre
pod update
clean
build

Installing iOS Swift Chat App

  1. Simply clone the project from ios-swift-chat-app repository. After cloning the repository:

  2. Navigate to project's folder and use below command to install the require dependancies.

    $ pod install
    
  3. If you're facing any issues while installing pods, then kindly use the below command to install dependancies.

    pod install --repo-update
    
  4. Build and run the Sample App.


Running the sample app

To Run to sample app you have to do the following changes by Adding AppID, AuthKey and Region.

You can obtain your App ID, Auth Key and Region from CometChat-Pro Dashboard. Create new app and head over to the Quick Start or API & Auth Keys section and note the App ID, Auth Key, and Region.

  • Open the project in Xcode.

  • Go to CometChatSwift --> AppConstants.swift.

  • Modify App ID and Auth Key and Region with your own App ID, Auth Key and Region.

  • Select demo users or enter the UID at the time of login once the app is launched.

Studio Guide


Add UI Kit to your project

Learn more about how to integrate UI Kit inside your app.


Troubleshooting


Contributors

Thanks to the following people who have contributed to this project:

@pushpsenairekar2911 πŸ‘¨β€πŸ’»
@ghanshyammansata πŸ‘¨β€πŸ’»
@jeetkapadia πŸ‘¨β€πŸ’»
@NishantTiwarins πŸ‘¨β€πŸ’»
@AbdullahAnsarri πŸ‘¨β€πŸ’»
@ajayv-cometchat πŸ‘¨β€πŸ’»


Contact

Contact us via real time support present in CometChat Dashboard.


License


This project uses the following license.