我在与quickblox服务器重新连接后发送消息时遇到问题。如果我从设备断开互联网连接再重新连接,聊天消息就不会发送。但是日志显示它已发送,未显示接收日志。重新连接代码工作正常但无法再聊天。
当它工作正常时,
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
仅发送消息时,不显示收到的日志。
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");
}