Learn how to install QuickBlox SDK and send your first message.
appId
, authKey
, authSecret
, accountKey
to the init()
method using the code snippet below.
init()
method. If you attempt to call a method without connecting, the error is returned.login()
method and pass the login
and password
to it using the code snippet below.
connect()
method and pass userId
and password
to it.
createDialog()
method and pass the occupantsIds
, dialogName
, and dialogType
to it.
sendMessage()
method and pass the dialogId
and body
as arguments to it.
saveToHistory
parameter if you want this message to be saved in chat history.