Learn how to add and configure QuickBlox SDK for your app.
AndroidManifest.xml
file.
Additionally, if your app requires access to the camera, microphone, internet, or storage, you may need to include related permissions in the manifest as well.
AndroidManifest.xml
file located at the application level — not a test or variant manifest.init()
method.
Argument | Required | Description |
---|---|---|
appId | yes | Application identifier. |
authKey | yes | Authorization key. |
authSecret | yes | Authorization secret. |
accountKey | yes | Required to get actual apiEndpoint and chatEndpoint for the right server. |
Argument | Required | Description |
---|---|---|
appId | yes | Application identifier. |
accountKey | no | Required to get actual apiEndpoint and chatEndpoint for the right server. |
apiEndpoint
and chatEndpoint
to the init()
method.
Argument | Required | Description |
---|---|---|
appId | yes | Application identifier. |
authKey | yes | Authorization key. |
authSecret | yes | Authorization secret. |
apiEndpoint | no | API endpoint. |
chatEndpoint | no | Chat endpoint. |
enableAutoReconnect()
method and pass true
to it.
enable
parameter as false
to enableAutoReconnect()
method.
login()
method so it could be applied in a current chat.initStreamManagement()
method and pass autoReconnect
and messageTimeout
parameters to it to enable stream management.
Argument | Required | Description |
---|---|---|
messageTimeout | yes | Preferred resumption time (in seconds). If this parameter is greater than 0, then it is applied, otherwise it is not applied. |
autoReconnect | no | Set this parameter to apply Stream resumption. Set it as true to use Stream resumption for new connections. Default: false. |
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.