Learn how to add and configure QuickBlox SDK for your app.
Podfile
. Project dependencies should be managed by CocoaPods. Create this file in the same directory with your project.Podfile
and enter the following code lines into it.Parameters | Description |
---|---|
applicationID | Application identifier. |
authKey | Authorization key. |
authSecret | Authorization secret. |
accountKey | Required to get actual Chat and APIendpoints for the right server. |
startSession(withToken:)
method. You can find out more about this in the Set existing session section.
apiEndpoint
and chatEndpoint
in the AppDelegate file located in the root directory of your project.
Parameters | Description |
---|---|
applicationID | Application identifier. |
authKey | Authorization key. |
accountKey | Required to get actual Chat and APIendpoints for the right server. |
apiEndpoint | API endpoint. |
chatEndpoint | Chat endpoint. |
QBSettings.hashAlgorithm
, which supports SHA1 and SHA256 options starting from version 2.19.0. QBHashAlgorithmSHA1
is set as the default option.
setLogLevel()
method.
Parameters | Description |
---|---|
QBLogLevel.debug | Write full logs (default value). |
QBLogLevelNetwork | Write network logs. |
QBLogLevelInfo | Write information logs. |
QBLogLevelWarnings | Write warning logs. |
QBLogLevelErrors | Write error logs. |
QBLogLevelNothing | Write nothing. Turn off logs. |
setLogLevel()
method.
SwiftObjective-C
Parameters | Description |
---|---|
QBRTCLogLevelVerboseWithWebRTC | Write full QuickBlox WebRTC and WebRTC native logs. Can be helpful to debug some complicated problems with calls. |
QBRTCLogLevelVerbose | Write full QuickBlox WebRTC logs. Basic logs from our framework (default value). |
QBRTCLogLevelInfo | Write information logs. |
QBRTCLogLevelWarnings | Write warning logs. |
QBRTCLogLevelErrors | Write error logs. |
QBRTCLogLevelNothing | Write nothing. Turn off logs. |
autoReconnectEnabled()
as true
.
connect()
method so it could be applied in a current chat.connect()
method is called.0
, then it is applied, otherwise, it is not applied.
connect()
method is called and disabled once the disconnect()
method is called.application(_:didFinishLaunchingWithOptions:)
method of AppDelegate.m
.