极光IM jmsg_clearCurrentUser

标签: #<Tag:0x00007f65829546f8>

极光登录成功后退出,报如下日志

**2019-08-14 14:26:48.585000+0800 beijing[3255:1073093] [DYMTLInitPlatform] platform initialization successful**

**2019-08-14 14:26:48.960644+0800 beijing[3255:1073041] config = ["TDataProviderServiceProtocol","TDataProviderService", 100 ]**

**2019-08-14 14:26:49.302238+0800 beijing[3255:1073041] Unknown class ViewController in Interface Builder file.**

**2019-08-14 14:26:49.542738+0800 beijing[3255:1073097] | JIGUANG | I - [JIGUANGService]** 

**--------------------------- JPush Log ----------------------------**

**--------------------JPush SDK Version:3.2.0--build:84----------**

**--------------------JCore Lib Version:2.0.0--build:59----------**

**-----------------AppKey:39ef39f1c601c4b340a0bf19----------------**

**----------------------------------------------------------------**

**2019-08-14 14:26:49.712387+0800 beijing[3255:1073041] >>>>>IM登录成功**

**2019-08-14 14:26:50.609243+0800 beijing[3255:1073119] | JIGUANG | I - [JIGUANGClientController] Action - jpush setup**

**2019-08-14 14:26:50.848302+0800 beijing[3255:1073100] | JIGUANG | I - [JMSGBadgeNumberReport] im set badge:0 succeed**

**2019-08-14 14:26:50.848775+0800 beijing[3255:1073100] | JIGUANG | I - [JIGUANGConnectManager] Action - closeConection**

**2019-08-14 14:26:51.769523+0800 beijing[3255:1073100] | JIGUANG | I - [JMSGHttpManager] convert error is Error Domain=jmsg_error Code=898008 "basic authentication failed" UserInfo={NSLocalizedDescription=basic authentication failed}**

**2019-08-14 14:26:51.945650+0800 beijing[3255:1073041] Reachability Flag Status: -R ------- networkStatusForFlags**

**2019-08-14 14:26:52.445971+0800 beijing[3255:1073041] WIFI**

**2019-08-14 14:26:52.609819+0800 beijing[3255:1073097] | JIGUANG | W - [JIGUANGDeviceTokenController] Not get deviceToken yet. After successful login, a custom message can be sent, but the APNs notification cannot. Until the deviceToken is obtained and reported successfully, the APNs notification can be used normally.**

**2019-08-14 14:26:53.352047+0800 beijing[3255:1073100] | JIGUANG | I - [JIGUANGTcpEventController]** 

**----- login result -----**

**uid:28957559451** 

**registrationID:1517bfd3f7be9d061aa** 

**idc:0**

**2019-08-14 14:26:53.758062+0800 beijing[3255:1073087] | JIGUANG | E - [JMSGUser+JMSGInner] Error Domain=jmsg_error Code=823001 "JMSGError:no error message" UserInfo={NSLocalizedDescription=JMSGError:no error message}**

**2019-08-14 14:26:54.276230+0800 beijing[3255:1073041] 添加别名成功**

**2019-08-14 14:26:54.433132+0800 beijing[3255:1073119] | JIGUANG | I - [JMessage+JMSGInner] Action - jmsg_clearCurrentUser**

**2019-08-14 14:27:06.990375+0800 beijing[3255:1073041] <JMSGConversation, 0x7683940> - [ARRAY - conversationType:单聊会话, targetId:10001, title:卡斯迪奥, avatarPath:avatar/10001_39ef39f1c601c4b340a0bf19/thumb/C338C0011A098D97F31951E69F724108, unreadCount:0, message_table:message_table_FDC94D538A65FCEDA354B4F91565591652, latestMsgTime:1565749972163, latestMessage:<JMSGMessage, 0x7684b90> - [ARRAY - msgId:msgId_1565754494680087, serverMessageId:4494680087, otherSide:10001, isReceived:0, contentType:文本消息, status:消息发送成功, fromAppKey:39ef39f1c601c4b340a0bf19, targetAppKey:39ef39f1c601c4b340a0bf19], targetAppKey:39ef39f1c601c4b340a0bf19]**

**2019-08-14 14:27:07.103755+0800 beijing[3255:1073119] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:27:07.122477+0800 beijing[3255:1073119] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:27:07.190540+0800 beijing[3255:1073085] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:27:07.313703+0800 beijing[3255:1073085] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:27:07.314079+0800 beijing[3255:1073085] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:31:53.369080+0800 beijing[3255:1073123] | JIGUANG | E - [JIGUANGTcpChannelController] ack timeout for request rid: 643**

**2019-08-14 14:31:53.372074+0800 beijing[3255:1073460] | JIGUANG | I - [JIGUANGConnectManager] Action - closeConection**

**2019-08-14 14:31:59.092967+0800 beijing[3255:1073460] | JIGUANG | I - [JIGUANGTcpEventController]** 

**----- login result -----**

**uid:28957559451** 

**registrationID:1517bfd3f7be9d061aa** 

**idc:0**

**2019-08-14 14:31:59.093552+0800 beijing[3255:1073533] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:32:19.808446+0800 beijing[3255:1073460] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:32:19.817056+0800 beijing[3255:1073445] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:32:20.044183+0800 beijing[3255:1073123] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:32:20.044672+0800 beijing[3255:1073123] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:32:20.060674+0800 beijing[3255:1073123] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

再次支行APP进行登录,登录不上,超时

**08-14 14:35:27.046881+0800 beijing[3263:1074439] [DYMTLInitPlatform] platform initialization successful**

**2019-08-14 14:35:27.403984+0800 beijing[3263:1074387] config = ["TDataProviderServiceProtocol","TDataProviderService", 100 ]**

**2019-08-14 14:35:27.766213+0800 beijing[3263:1074387] Unknown class ViewController in Interface Builder file.**

**2019-08-14 14:35:27.977499+0800 beijing[3263:1074431] | JIGUANG | I - [JIGUANGService]** 

**--------------------------- JPush Log ----------------------------**

**--------------------JPush SDK Version:3.2.0--build:84----------**

**--------------------JCore Lib Version:2.0.0--build:59----------**

**-----------------AppKey:39ef39f1c601c4b340a0bf19----------------**

**----------------------------------------------------------------**

**2019-08-14 14:35:28.961589+0800 beijing[3263:1074464] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:35:28.977349+0800 beijing[3263:1074431] | JIGUANG | I - [JIGUANGClientController] Action - jpush setup**

**2019-08-14 14:35:29.317504+0800 beijing[3263:1074483] | JIGUANG | I - [JIGUANGConnectManager] Action - closeConection**

**2019-08-14 14:35:29.713362+0800 beijing[3263:1074487] | JIGUANG | I - [JMSGBadgeNumberReport] im set badge:0 succeed**

**2019-08-14 14:35:30.551485+0800 beijing[3263:1074486] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:35:30.551886+0800 beijing[3263:1074486] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:35:30.687781+0800 beijing[3263:1074463] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:35:30.688199+0800 beijing[3263:1074463] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:35:30.755844+0800 beijing[3263:1074387] Reachability Flag Status: -R ------- networkStatusForFlags**

**2019-08-14 14:35:30.979344+0800 beijing[3263:1074483] | JIGUANG | W - [JIGUANGDeviceTokenController] Not get deviceToken yet. After successful login, a custom message can be sent, but the APNs notification cannot. Until the deviceToken is obtained and reported successfully, the APNs notification can be used normally.**

**2019-08-14 14:35:31.395308+0800 beijing[3263:1074387] WIFI**

**2019-08-14 14:35:31.925292+0800 beijing[3263:1074465] | JIGUANG | I - [JIGUANGTcpEventController]** 

**----- login result -----**

**uid:28957559451** 

**registrationID:1517bfd3f7be9d061aa** 

**idc:0**

**2019-08-14 14:35:31.926220+0800 beijing[3263:1074450] | JIGUANG | E - [JMessage+JMSGInner] user didn't login, please login first!**

**2019-08-14 14:35:32.631558+0800 beijing[3263:1074387] 添加别名成功**

**2019-08-14 14:35:58.199729+0800 beijing[3263:1074461] | JIGUANG | E - [JMSGUser] login error:Error Domain=jmsg_error Code=6002 "JMSGError:request timeout" UserInfo={NSLocalizedDescription=JMSGError:request timeout}**

这个看起来是你在退出登陆后又操作了 需要登陆才能操作的 API,所以报的错误

请监听一下连接状态
https://docs.jiguang.cn/jmessage/client/jmessage_ios_guide/#_8

再做登陆操作