Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/94.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 在Quick Blox中重新连接internet聊天后未收到聊天信息?_Ios_Quickblox - Fatal编程技术网

Ios 在Quick Blox中重新连接internet聊天后未收到聊天信息?

Ios 在Quick Blox中重新连接internet聊天后未收到聊天信息?,ios,quickblox,Ios,Quickblox,重新连接quickblox服务器后,我无法发送消息。如果我断开internet与设备的连接,然后再次重新连接,则聊天消息不会发送。但日志显示它已发送,而不显示接收日志。重新连接代码工作正常,但无法再聊天 当它工作正常时 2013-10-12 10:48:37.033 football365[1000:8517] -[QBChat xmppStream:didSendMessage:] -> Message: <message to="4099_0000000

重新连接quickblox服务器后,我无法发送消息。如果我断开internet与设备的连接,然后再次重新连接,则聊天消息不会发送。但日志显示它已发送,而不显示接收日志。重新连接代码工作正常,但无法再聊天

当它工作正常时

2013-10-12 10:48:37.033 football365[1000:8517] -[QBChat xmppStream:didSendMessage:] ->              Message: <message to="4099_000000001000000003@muc.chat.quickblox.com" id="7" type="groupchat"><body>hello</body></message>
2013-10-12 10:48:37.463 football365[1000:8517] -[QBChat xmppRoom:didReceiveMessage:fromNick:] -> message: <message xmlns="jabber:client" type="groupchat" to="578338-4099@chat.quickblox.com/tigase-11258" from="4099_000000001000000003@muc.chat.quickblox.com/578338"><body>hello</body></message> fromNick: 578338

每当我在设备中断开并重新连接internet时,就会发生这种情况。请尝试使用此版本作为临时解决方案(为了将来使用,请使用Cocoa Pods)
2013-10-12 10:48:37.033 football365[1000:8517] -[QBChat xmppStream:didSendMessage:] ->              Message: <message to="4099_000000001000000003@m
if (QBChatServiceErrorConnectionClosed)
    {
        NSLog(@"connection QBChatServiceErrorConnectionClosed");
    }
    if (QBChatServiceErrorConnectionTimeout)
    {
        NSLog(@"connection QBChatServiceErrorConnectionTimeout");
    }