Learn how to add and configure QuickBlox SDK for your app.
Parameters | Description |
---|---|
messages | Push Notifications module enables working with push notifications and alerts to users. |
chat | Chat module allows creating dialogs and sending messages into these dialogs. |
content | Content module enables file storage and creating chat attachments for your app. |
webrtc | Video Calling module adds video and audio calling features to your app. |
conference | Video Conference allows setting up a video conference between 10-12 people in your app. |
customobjects | Custom Objects module provides flexibility to define any data structure you need for your app. |
init()
method.
init()
method. If you attempt to call a method without connecting, the error is returned.Argument | Required | Description |
---|---|---|
APPLICATION_ID | yes | Application identifier. |
AUTH_KEY | yes | Authorization key. |
AUTH_SECRET | yes | Authorization secret. |
ACCOUNT_KEY | yes | Account key. Required to get actual Chat and API endpoints for the right server. |
QBAuth.startSessionWithToken()
method. You can find out more about this in the [Set existing session](/sdks/android-authentication #set-existing-session) section.
API_ENDPOINT
and CHAT_ENDPOINT
to the setEndpoints()
method. You can call this method only after initializing the SDK.
Argument | Required | Description |
---|---|---|
API_ENDPOINT | yes | API endpoint. |
CHAT_ENDPOINT | yes | Chat endpoint. |
serviceZone | yes | Connection service zone. The area where push notifications and messages can work. |
Parameters | Description |
---|---|
LogLevel.NOTHING | Write nothing. Turn off logs. |
LogLevel.DEBUG | Enable logs (default value). |
true
is enabled, false
is disabled. Default: false
.
setDebugEnabled()
method. true
is enabled, false
is disabled. Default: true.
setReconnectionAllowed()
method and pass true
.
QBChatService.getInstance().login()
method so it could be applied in a current chat.QBChatService.getInstance().login()
method is called.login()
because the Stream Management is initialized while Chat login is performed.The Stream Management defines an extension for active management of a stream between a client and server, including features for stanza acknowledgments.QBRTCMediaConfig
class instance to configure a various list of media settings like video/audio codecs, bitrate, fps, etc.
perform()
or performAsync()
. Please note that the QBUsers.getUser()
method is used there as an example. You can use these performers in all cases where performers are available. In a synchronous way, you should handle QBResponseException
.