title: XMPP framework XEP-0136 implementation in iOS client
body: <p>I am working on the iOS chat client application. Now I want to store the chat history in the device and server, I looked in the google and found that I can do it with the XEP-0136 extension. I looked into it but didn't got any idea about how to implement.
  If anyone has used or have any link to tutorial which can help me than please share it.</p>
  
  <p>I have now activated the message archive module and seems like its storing the message but don't know where it is storing. Can anyone let me know where in local device is the archived message are stored.</p>
  
  <p>following is the code I have used for the module activation.</p>
  
  <pre><code>XMPPMessageArchiving *xmppMessageArchivingModule = [[XMPPMessageArchiving alloc] initWithMessageArchivingStorage:[XMPPMessageArchivingCoreDataStorage sharedInstance]];
  
  [xmppMessageArchivingModule setClientSideMessageArchivingOnly:YES];
  [xmppMessageArchivingModule activate:xmppStream];
  [xmppMessageArchivingModule addDelegate:self delegateQueue:dispatch_get_main_queue()];
  </code></pre>
  
  <p>Thanks in Advance</p>