README.md
file.Kindly, click on below button to download our iOS Chat UI Kit.iOS Chat UI KitView on GithubI want to integrate UI Kit with my AppREADME.md
file.Kindly, click on below button to download our Swift Sample App.Swift Sample AppView on GithubOr else, you can also checkout our Objective-C Sample App.Objective-C Sample AppView on GithubIf you’re building the new project, the please add below line in AppDelegate.swift> > var window: UIWindow?
Please install the latest pod version on your Mac to avoid integration issues> > Please follow the below steps:> > 1. sudo gem update cocoapods —pre> 2. pod update> 3. clean> 4. build
init()
method initializes the settings required for CometChat. We suggest calling the init()
method on app startup, preferably in the didFinishLaunchingWithOptions()
method of the Application class.
Make sure you replace the appId with your CometChat appId and region with your app region in the above code.
User
object and the Auth Key
as input parameters and returns the created User
object if the request is successful.
login()
method returns the User object containing all the information of the logged-in user.
- Make sure you replace the authKey with your CometChat Auth Key in the above code.> - We have set up 5 users for testing having UIDs: cometchat-uid-1, cometchat-uid-2, cometchat-uid-3, cometchat-uid-4, and cometchat-uid-5.
Library
folder and drag and drop the Library
folder inside your project’s folder.
CometChatUI
class. CometChatUI is a subclass of UITabbarController.
Please run the above code snippet in the main thread.
- This method only allows user to launch the incoming call screen and other calling events when the app is in foreground mode.