Simply clone the project from iOS-swift-chat-app repository. After cloning the repository navigate to project's folder and use below command to install the require pods.
$ pod install
Build and run the Sample App.
If you are using Swift v4.2 or lower version of xcode than 10.2 then use pod CometChatPro_Swift4.2
or using Swift v5.0 and xcode 10.2+ then use pod CometChatPro
inside the project's podfile.
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 update the SDK by running the following command.
$ pod install
If the pod installation fails due to Cocoapods dependancy issue then use the below command to install the framework through cocoapods.
pod install --repo-update
You can download the CometChatPro SDK from link below and manually add it in the project.
Download CometChatPro SDK from ios-chat-sdk
To Run to sample App you have to do the following changes by Adding APP_ID and API_KEY and s user's UID for which you wants to send the push notification.
You can obtain your APP_ID and API_KEY from CometChat-Pro Dashboard
-
Open the project in Xcode.
-
Go to SampleApp-PushNotifications --> AppConstants.h.
-
modify apiKey and appID with your own API_KEY and APP_ID.
-
Enter toUserUID for which you wants to send the push notification.
Feel free to make a suggestion by creating a pull request.