i'm using smack 4.1 library where i'm unable to revived message event.
here is my code-
Chat chat = connection.getChatManager().createChat("user2@openfireserver", new MessageListener() {
@Override
public void processMessage(Chat arg0, Message arg1) {
System.out.println(arg1.getBody());
}
});
chat.sendMessage("test message");
debug report-
<message id="WrfOv-14" to="user1@openfireserver/Smack" from="user2@openfireserver/Smack" type="chat"><body>my test application</body><thread>56b1a75c-69a5-4a12-b12a-d24e072a2ce7</thread></message>
receive chat show in debug but not getting event in processMessage method. (may my question is duplicate but i'm not find relevant answer)