Not able to send message using smack
For sending the message using following code.
var localChatManager: ChatManager = ChatManager.getInstanceFor(connection)
var contactJid: EntityBareJid = JidCreate.entityBareFrom(contactPersonJId)
var chat: Chat = localChatManager.chatWith(contactJid)
Log.v("Chat Response msg ",chat.send(message).toString())
Logcat
05-01 16
0247.823 7915-29025/com.example.itstym.abc D/SMACK: SENT (0): heyiiii
Sometimes message got send but not in real time. Like when I am login but not open the chat...