Learn how to install QuickBlox SDK and send your first message.
appId
, authKey
, authSecret
, accountKey
properties of the appSettings
object. Call the init()
method and pass the appSettings
as an argument to it.
init()
method. If you attempt to call a method without initializing SDK previously, the error will be returned.login
and password
properties of the loginParams
object. Call the login()
method and pass the loginParams
as an argument to it using the code snippet below.
userId
and password
properties of the connectParams
object. Call the connect()
method and pass the connectParams
as an argument to it.
type
and occupantsIds
properties of the createDialogParams
object. Call the createDialog()
method and pass the createDialogParams
as an argument to it.
dialogId
and body
properties of the message
object. Call the sendMessage()
method and pass the message
as an argument.
saveToHistory
parameter if you want this message to be saved in chat history.