Note that there are some explanatory texts on larger screens.

plurals
  1. POIssues XMPP framework (iOS) and EJabberd server
    text
    copied!<p>I want to create a chat application that uses Ejabberd as the server. I setup the ejabberd on my laptop Ubuntu 12.04 and port forward to my public ip. I try to use Pidgin(Ubuntu), Adium(MacOS), IM+(Andriod, IOS). All of them can connect and chat with each other.</p> <p>However, when I follow the tutorial here <a href="http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-xmpp-integration/" rel="nofollow">http://mobile.tutsplus.com/tutorials/iphone/building-a-jabber-client-for-ios-xmpp-integration/</a> to build my own chat app. I got a number of issues that cant let me chat with other accounts.</p> <p>Here are the messages sent and received:</p> <pre><code>2012-07-19 11:59:59:749 XMPPStream[49107:403] RosterController: awakeFromNib 2012-07-19 11:59:59:973 XMPPStream[49107:403] AppDelegate: applicationDidFinishLaunching: 2012-07-19 12:00:06:460 XMPPStream[49107:4603] SEND: &lt;?xml version='1.0'?&gt; 2012-07-19 12:00:06:460 XMPPStream[49107:4603] SEND: &lt;stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' to='xxx.xxx.xxx.xxx'&gt; 2012-07-19 12:00:06:464 XMPPStream[49107:4603] RECV: &lt;stream:stream xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams" id="1582664547" from="xxx.xxx.xxx.xxx" version="1.0" stream:lang="en"/&gt; 2012-07-19 12:00:06:465 XMPPStream[49107:4603] RECV: &lt;stream:features xmlns:stream="http://etherx.jabber.org/streams"&gt;&lt;starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls"/&gt;&lt;mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl"&gt;&lt;mechanism&gt;PLAIN&lt;/mechanism&gt;&lt;mechanism&gt;DIGEST-MD5&lt;/mechanism&gt;&lt;mechanism&gt;SCRAM-SHA-1&lt;/mechanism&gt;&lt;/mechanisms&gt;&lt;c xmlns="http://jabber.org/protocol/caps" hash="sha-1" node="http://www.process-one.net/en/ejabberd/" ver="wwrSvLFOLzC92POh074kJuEqYxE="/&gt;&lt;register xmlns="http://jabber.org/features/iq-register"/&gt;&lt;/stream:features&gt; 2012-07-19 12:00:06:465 XMPPStream[49107:403] RosterController: xmppStreamDidConnect: 2012-07-19 12:00:06:466 XMPPStream[49107:403] SEND: &lt;auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl" mechanism="DIGEST-MD5"/&gt; 2012-07-19 12:00:06:468 XMPPStream[49107:3e0b] RECV: &lt;challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl"&gt;bm9uY2U9IjIxNTYzMTM4ODEiLHFvcD0iYXV0aCIsY2hhcnNldD11dGYtOCxhbGdvcml0aG09bWQ1LXNlc3M=&lt;/challenge&gt; 2012-07-19 12:00:06:468 XMPPStream[49107:3e0b] SEND: &lt;response xmlns="urn:ietf:params:xml:ns:xmpp-sasl"&gt;dXNlcm5hbWU9Imt3ZWluZXIxIixyZWFsbT0iMjAzLjIwNS4xMC4xMjciLG5vbmNlPSIyMTU2MzEzODgxIixjbm9uY2U9Ijg1RUU5MTczLTQ0RTEtNDNDMS1CNzFBLTY3OEE5NTQ2MjU1MiIsbmM9MDAwMDAwMDEscW9wPWF1dGgsZGlnZXN0LXVyaT0ieG1wcC8yMDMuMjA1LjEwLjEyNyIscmVzcG9uc2U9NzMwZWZjNzUxOWIwNzNiNDEzMGU0NjFjMmVmMjliNmIsY2hhcnNldD11dGYtOA==&lt;/response&gt; 2012-07-19 12:00:06:502 XMPPStream[49107:4603] RECV: &lt;challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl"&gt;cnNwYXV0aD00YzRjMDk4ZGJhYjk2NmNiMTg3MzVhOTMyYTZhMDkxYw==&lt;/challenge&gt; 2012-07-19 12:00:06:502 XMPPStream[49107:4603] SEND: &lt;response xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/&gt; 2012-07-19 12:00:06:854 XMPPStream[49107:4603] RECV: &lt;success xmlns="urn:ietf:params:xml:ns:xmpp-sasl"/&gt; 2012-07-19 12:00:06:854 XMPPStream[49107:4603] SEND: &lt;stream:stream xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' to='xxx.xxx.xxx.xxx'&gt; </code></pre> <p>Here are what I observed:</p> <ul> <li>When I turn off the ejabberd server, the client app stops working. This mean it tried to connect to the server.</li> <li>On Android, Ubuntu, and MacOS, everytime I login it ask for accepting a certificate. But I dont see it on MY iOs app.</li> <li>It seems that after success, it renegotiates and doesnt receive any response.</li> <li>On the web admin of ejabberd, I dont see any online user. However, I see request is coming in the log. What documents and steps should I follow to debug XMPP application on iOS?</li> </ul> <p>I'm using XCode 4.3.2 iOS 5.1 Ejabberd 2.1.11 on Ubuntu (Linux 32 bits). I tried to debug and google for 2 days but no clue</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload