Note that there are some explanatory texts on larger screens.

plurals
  1. POQuickblox chat message didn't sent after reconnect
    text
    copied!<p>I have problem with sending messages after reconnecting with the quickblox server. The user is automatically logout in the middle of chatting with the others and after reconnect with the server again, the chat messages is not sending. But the log shown it was sent , not showing the receive log. The reconnect code works fine but cannot chat anymore.</p> <p>when it was working as fine,</p> <pre><code> 2013-10-12 10:48:37.033 football365[1000:8517] -[QBChat xmppStream:didSendMessage:] -&gt; Message: &lt;message to="4099_000000001000000003@muc.chat.quickblox.com" id="7" type="groupchat"&gt;&lt;body&gt;hello&lt;/body&gt;&lt;/message&gt; 2013-10-12 10:48:37.463 football365[1000:8517] -[QBChat xmppRoom:didReceiveMessage:fromNick:] -&gt; message: &lt;message xmlns="jabber:client" type="groupchat" to="578338-4099@chat.quickblox.com/tigase-11258" from="4099_000000001000000003@muc.chat.quickblox.com/578338"&gt;&lt;body&gt;hello&lt;/body&gt;&lt;/message&gt; fromNick: 578338 </code></pre> <p>when message only sent, the received log is not shown.</p> <pre><code> 2013-10-12 10:48:37.033 football365[1000:8517] -[QBChat xmppStream:didSendMessage:] -&gt; Message: &lt;message to="4099_000000001000000003@muc.chat.quickblox.com" id="7" type="groupchat"&gt;&lt;body&gt;hello&lt;/body&gt;&lt;/message&gt; </code></pre> <p>the login code in DataManager.m.</p> <pre><code> - (void)chatLogin{ QBASessionCreationRequest *extendedAuthRequest = [QBASessionCreationRequest request]; extendedAuthRequest.userLogin = @"userid"; extendedAuthRequest.userPassword = @"password"; [QBAuth createSessionWithExtendedRequest:extendedAuthRequest delegate:self]; [[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:YES]; } - (void)completedWithResult:(Result *)result{ if(result.success &amp;&amp; [result isKindOfClass:QBAAuthSessionCreationResult.class]){ QBAAuthSessionCreationResult *res = (QBAAuthSessionCreationResult *)result; currentUser = [QBUUser user]; currentUser.ID = res.session.userID; currentUser.password = @"password"; [[DataManager shared] setCurrentUser: currentUser]; [QBChat instance].delegate = self; [[QBChat instance] loginWithUser:currentUser]; } } </code></pre> <p>reconnect code in chatViewController.m,</p> <pre><code> -(void)chatDidFailWithError:(int)code { [[QBChat instance] loginWithUser:currentUser]; } </code></pre>
 

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