I have a stable xmpp chat implemented with smack library for android. I need to get the conversation history between two users, I found out that I can get the history by sending a raw xml IQ, but I couldn't find a way to do it using smack.
<iq type="get" id="pk1">
<query xmlns="urn:xmpp:mam:tmp" with="user@domain" queryid="x01">
<set xmlns="http://jabber.org/protocol/rsm">
<max>100</max>
</set>
</query>
</iq>
Is there any other way I could get the history between two users without unsing a server? Thank you