This section contains how you can embed Channelize.io powered real-time messaging to your iOS applications using CocoaPods.
Set Up Cocoapods
Please make sure you are using cocoapods version
1.9.1 or above. To check your current cocoapod version, open terminal and run command
If it showing version below 1.9.1, then update your cocoapod by running command
sudo gem install cocoapods
Install and Configure the SDK
1. Install Pods
For developers who had never used CocoaPods for an Xcode project, open a terminal window, move to your project directory, and then create a
Podfile by running the below command:
Add the below lines to the Podfile:
platform :ios, '11.0' target 'YourProject' do use_frameworks! pod 'ChannelizeAPI' '>= 4.20.6' end
Now install the Channelize API framework through CocoaPods.
2. Create .plist file
You need to create a
.plist file with name
Channelize-Info.plist which will contain all required keys i.e Channelize.io Public Key, Giphy API Key, Agora API Key, and Maps API Key.
For using iOS API SDK this file should only have Public key as shown below:
<key>PUBLIC_KEY</key> <string>xxxx PublicKey xxxx</string>
3. Use SDK Methods
Now use all classes and methods with the import statement.
4. Configure SDK
To configure SDK you need to add the following code in
didFinishLaunchingWithOptions function of your project's