title: Unity XMPP Chat
body: <p>I am new to Unity and implementing a XMPP chat there for the first time. I am trying since 20 days but nothing seems to work for me. I have tried the below libraries with special regard to:</p>
  <p><strong><a href="https://www.assetstore.unity3d.com/en/#!/content/61729" rel="nofollow noreferrer">Jabber Unity Networking</a></strong></p>
  <p>I have purchased this code for $30 and implemented it, but the issue is that it is working fine in Unity editor but when I export it as <code>.apk</code> for Android  and <code>.app</code> for iOS then it is not working. The XMPP connection fails for real devices with the following error log for Android : <code>getifaddrs</code></p>
  <p>I also tried to work with libraries suggested in this <strong><a href="http://xmpp.org/software/libraries.html" rel="nofollow noreferrer">XMPP library list for C#</a></strong>, but was not able to find a solution there.</p>
  <p><strong>More References:</strong></p>
  <ul>
  <li><a href="https://www.nsoftware.com/ipworks/" rel="nofollow noreferrer">P*Works Internet Toolkit</a></li>
  <li><a href="https://code.google.com/archive/p/jabber-net/" rel="nofollow noreferrer">jabber.net</a></li>
  <li><a href="https://github.com/pgstath/Sharp.Xmpp" rel="nofollow noreferrer">Sharp.Xmpp</a></li>
  <li><a href="https://github.com/ubiety/xmpp" rel="nofollow noreferrer">Ubeity</a></li>
  </ul>
  <hr />
  <p>Other possible paid reference that I did not consider:</p>
  <ul>
  <li><a href="http://www.ag-software.net/" rel="nofollow noreferrer">agsXMPP SDK</a> - But this is paid</li>
  <li><a href="http://www.ag-software.net/" rel="nofollow noreferrer">MatriX</a> -  But this is paid</li>
  </ul>
  <p>Also tried to create a plugin for Unity using native iOS code of XMPP chat but it also fails.</p>