title: How to use XEP 198 (Stream Management) from smack 4.1?
body: <p>I am new to XMPP. I'm using smack on android for providing chat in my application. </p>
  
  <p>In smack 4.1, support for stream management is added so I used </p>
  
  <pre><code>  XMPPTCPConnection.setUseStreamManagementDefault(true);
  </code></pre>
  
  <p>to enable this and I'm getting :</p>
  
  <pre><code>03-27 00:50:54.945: D/SMACK(16991): SENT (5): &lt;enable xmlns='urn:xmpp:sm:3' resume='true'/&gt;
  03-27 00:50:55.740: D/SMACK(16991): RECV (5): &lt;enabled xmlns='urn:xmpp:sm:3' id='g2gCbQAAAAVTbWFja2gDYgAABZNiAAYRuGIAAW06' resume='true' max='300'/&gt;
  </code></pre>
  
  <p>So, XEP 198 is working fine both on my client and the server(ejabberd 15). </p>
  
  <p>But my question is -> do I have to write my own code for storing the messages(which are not acknowledged by the server) into my android sqlite database  and manually resend them using <code>chat.sendMessage();</code> when the connection is reconnected? OR is this resending part is done by Smack itself?</p>
  
  <p>I didnt get any documentation for using XEP 198 on smack 4.1 other than  <code>XMPPTCPConnection.setUseStreamManagementDefault(true);</code></p>
  
  <p>Is there any method available from smack for listening to the <code>&lt;a/&gt;</code> received from the server?</p>
  
  <p>I have seen source code of <a href="https://github.com/pfleidi/yaxim" rel="noreferrer">yaxim</a>, but it seems they have written their own code(by sending packets) for supporting XEP 198 which is now done in Smack 4.1.</p>
  
  <p>Please help me with what should I do after enabling this support?</p>