Kommunicate provides open source live chat SDK in iOS. The Kommunicate SDK is flexible, lightweight and easily integrable. It lets you easily add real-time live chat and in-app messaging in your mobile applications and websites for customer support. The SDK is equipped with advance messaging options such as sending attachments, sharing location and rich messaging.
- Apps using Kommunicate can target iOS 12 or later
- Xcode 12 or later required
Option 1: CocoaPods
Kommunicate is available through CocoaPods. To install it, add the following line to your Podfile:
This is how the podfile will look:
Then run the following command:
In any file you'd like to use Kommunicate in, don't forget to import the framework as shown below:
Note: If you are using Kommunicate in an Objective-C app, then check thissample app in Objective-C. Create a wrapper file in Swift and call the functions in the wrapper from Objective-C files in your Project.
Option 2: Swift Package Manager (SPM)
Follow these steps to add Kommunicate package:
In your project, go to File > Swift Packages > Add Package Dependency
Enter the Kommunicate iOS SDK repo in the URL field.
Click on Next and wait till the package is added to your project.
For more details, please refer to this doc link.
Add permissions for Camera, Photo Library, Microphone, Contacts and Location usage.
Note: We won't be asking the users for these permissions unless they use the respective feature. Due to Apple's requirement, we have to add these permissions if we are using any of their APIs related to Camera, Microphone etc.
In your app's
Info.plist file as ‘Source code’ and paste these permissions anywhere inside the
<key>NSCameraUsageDescription</key> <string>Allow Camera</string> <key>NSContactsUsageDescription</key> <string>Allow Contacts</string> <key>NSLocationWhenInUseUsageDescription</key> <string>Allow location sharing!!</string> <key>NSMicrophoneUsageDescription</key> <string>Allow MicroPhone</string> <key>NSPhotoLibraryUsageDescription</key> <string>Allow Photos</string> <key>NSPhotoLibraryAddUsageDescription</key> <string>Allow write access</string>