iOS Getting Started
ConnectyCube helps you implement real-time chat, video chat, push notifications and user authorization to any app with ease - no server side implementation required. You can concentrate fully on your mobile app development. Our iOS SDK provides you with many helpful methods to build the chat and video chat from the client side.
This page presents a quick overview of the SDK’s functionalities and logic, then let you go through the easy steps of implementing ConnectyCube in your own app.
ConnectyCube iOS SDK can be used with the following languages and platforms:
- iOS (iPhone/iPad) Objective-C
- iOS (iPhone/iPad) Swift
Minimum iOS version supported is iOS 8.
Create ConnectyCube app
Register a FREE ConnectyCube account at https://connectycube.com/signup, then create your 1st app and obtain an app credentials. These credentials will be used to identify your app.
All users within the same ConnectyCube app can communicate by chat or video chat with each other, across all platforms - iOS, Android, Web, etc.
When building a new app
If you are just starting your app and developing it from scratch, we recommend to use our Code Samples projects.
Download Code Samples
These code samples are ready-to-go apps with an appropriate functionality and simple enough that even novice developers will be able to understand them.
When integrating SDK into existing app
If you already have an app, do the following for integration.
We recommend using CocoaPods as the most advanced way of managing iOS project dependencies.
To connect ConnectyCube to your iOS app just add it into your
platform :ios, '8.0' use_frameworks! target 'MyApp' do pod 'ConnectyCube' end
Now you can install the dependencies in your project:
Make sure to always open the Xcode workspace instead of the project file when building your project:
Now you can import your dependencies e.g.:
or if you use Swift:
Run script phase for archiving
Add a "Run Script Phase" to build phases of your project. Paste the following snippet into the script:
This fixes the known Apple bug, that does not allow to publish archives to the App store with dynamic frameworks that contain simulator platforms. Script is designed to work only for archiving.
Initialize framework with your ConnectyCube application credentials. Usually it's done in AppDelegate class:
CYBSettings.applicationID = 21; CYBSettings.authKey = @"hhf87hfushuiwef"; CYBSettings.authSecret = "jjsdf898hfsdfk"; CYBSettings.accountKey = @"sdfhdfy2329763buiyi";
Settings.applicationID = 21 Settings.authKey = "hhf87hfushuiwef" Settings.authSecret = "jjsdf898hfsdfk" Settings.accountKey = "sdfhdfy2329763buiyi"
You can access your application credentials in ConnectyCube Dashboard.
An additional set of configs can be configured via
CYBSettings.logLevel = CYBLogLevelDebug;
Settings.logLevel = .debug
The complete SDK changelog is available on ConnectyCube iOS GitHub page
The complete VideoChat SDK changelog is available on ConnectyCube VideoChat iOS GitHub page