- iOS app using Swift 3
- Xcode 8.0 or later
- iOS 9 or later
- CocoaPods
- Voxbone Account (for WebRTC API credentials, refer to documentation here to set up)
- iOS SDK credentials (contact us for access)
To integrate VoxboneSDK into your Xcode project using CocoaPods, specify it in your Podfile
:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
target '<Your Target Name>' do
pod 'VoxboneSDK'
end
Then, run the following command:
pod install
import VoxboneSDK
Voxbone.setLogLevel(.VOXBONE_INFO_LOG_LEVEL)
var voxbone: Voxbone = Voxbone.shared
voxbone.setVoxboneDelegate(delegate: self)
voxbone.connect(false)
voxbone.loginToVoxbone(withUsername: "your username", andPassword: "your password", andUser: "your user", andAppName: "your app name", andSecret: "your secret")
if let callId = voxbone.createVoxboneCall("phone number") {
voxbone.startCall(callId, withHeaders: nil)
}
if callId != nil {
voxbone.disconnectCall(callId!, withHeaders: nil)
}