问题描述
解决方案
报的错误是无法连接到服务器,这种情况是您那边的网络不好导致的报错,您用我们的demo发消息试试,看能不能发出去。
解决方案二:
demo能发出去,也没打印出NSLog:登录成功
解决方案三:
demo能发出去,这是打印出来的 2015-12-11 13:37:50:700 E_Supply[15655:807] begin insert message to chatter::6001, messageId::1518f8b9e6c2015-12-11 13:37:50:702 E_Supply[15655:807] end insert message with account::8001, to chatter::6001, messageId::1518f8b9e6c, result::NO2015-12-11 13:37:50:704 E_Supply[15655:6e37] send meesage failed-- error: server not reachable.2015-12-11 13:37:50:707 E_Supply[15655:6e37] EMChatManager+Chat == asyncSendMessage:progress:::didSendMessage:error: - 无法连接到服务器.2015-12-11 13:46:51.561 E_Supply[15655:4390533] 锁屏2015-12-11 14:04:52.613 E_Supply[15655:4390533] [GexinSdk] Will NOT bind deviceToken Since clientId UN-changed.2015-12-11 14:04:53:907 E_Supply[15655:807] begin insert message to chatter::6001, messageId::1518fa463132015-12-11 14:04:53:908 E_Supply[15655:807] end insert message with account::8001, to chatter::6001, messageId::1518fa46313, result::NO2015-12-11 14:04:53:912 E_Supply[15655:e263] send meesage failed-- error: server not reachable.2015-12-11 14:04:53:915 E_Supply[15655:e263] EMChatManager+Chat == asyncSendMessage:progress:::didSendMessage:error: - 无法连接到服务器.
解决方案四:
8001和6001都在自己appkey下注册了吗?并看log日志是否登录成功。
解决方案五:
好的