cordova jmessage ios集成网络报错

cordova
jmessage
ios
标签: #<Tag:0x00007fb8446ce9c8> #<Tag:0x00007fb8446ce7c0> #<Tag:0x00007fb8446ce4f0>

(过瘾) #1

使用cordova-jmessage-plugins 3.0.2版本 初始化后后台打印[JMSGUser] TCP is not link to success,wait a moment
这个错误, 导致登录不上,返回错误信息报Network…网络错误,可是手机的网络一直都是好的,上网看新闻都是没问题的


#2

给一下完整的客户端日志,可能你们可以上其他的网,但你们的网络屏蔽了我们的

你切换4G看看?


(过瘾) #3

网络确定没有对你们屏蔽,并且用4G网络测试后一样会报这个错,如果我去用网络工具浏览了新闻啥的,然后在跑回来,等待一会后就可以了,不知道是什么原因

------------------- JMessage SDK --------------------
------------------ JMessage SDK version:3.2.0, buildId:45 ---------
--------------------JCore Lib Version:1.1.3----------------------------
-----------------AppKey:**********----------------
----------------------------------------------------------------
2017-08-10 15:06:30.323655+0800 DL[4832:1506021] THREAD WARNING: ['JMessageNewPlugin'] took '21.885010' ms. Plugin should use a background thread.
2017-08-10 15:06:30.324476+0800 DL[4832:1506145]  | JIGUANG | I - [JMSGClientController] Action - jmessage setup
2017-08-10 15:06:30.325900+0800 DL[4832:1506125]  | JIGUANG | D - [JMSGFriendManager] Action - p_contactManagerBridgeRequest
2017-08-10 15:06:30.326287+0800 DL[4832:1506145]  | JIGUANG | D - [JMSGFriendManager] Action - p_getgetFriendListCompletionHandler
2017-08-10 15:06:30.326742+0800 DL[4832:1506125]  | JIGUANG | D - [JMSGUserHttp] Actioin - getFriendListWithParameter:
2017-08-10 15:06:32.327952+0800 DL[4832:1506172]  | JIGUANG | D - [JIGUANGNetworkController] Action - trySetupSession
2017-08-10 15:06:32.331370+0800 DL[4832:1506172]  | JIGUANG | D - [JIGUANGHttpSessionController] Action - setupSession
2017-08-10 15:06:32.332949+0800 DL[4832:1506126]  | JIGUANG | D - [JIGUANGNetworkController] userDefaut verified: 1, curNetworkStatus: 2
2017-08-10 15:06:40.532058+0800 DL[4832:1506021] username {
    password = *****;
    username = *****;
}
2017-08-10 15:06:40.534401+0800 DL[4832:1506126]  | JIGUANG | D - [JMSGUser] Action - loginWithUsername::: - username:18951658333
2017-08-10 15:06:40.539960+0800 DL[4832:1506126]  | JIGUANG | I - [JMSGUser] TCP is not link to success,wait a moment
2017-08-10 15:06:56.544565+0800 DL[4832:1506125]  | JIGUANG | D - [JMSGUser] Action - p_callBackLoginError

#4

这里是tcp没连上,等一等会重连


(过瘾) #5

为啥会连不上啊 我这登录就废了。。。不能老报这个错啊


#6

你这边在什么情况下,或者等多久才能成功连上?有测试吗?

有没有更多的日志信息提供分析,就你一直断开,到后面可以成功的完整的日志


(过瘾) #7
017-08-10 19:56:22.754865+0800 DL[5191:1598197]  | JIGUANG | D - [JMSGUser] Action - loginWithUsername::: - username:18951658333
2017-08-10 19:56:22.757158+0800 DL[5191:1598197]  | JIGUANG | I - [JMSGUser] TCP is not link to success,wait a moment
2017-08-10 19:56:38.764017+0800 DL[5191:1598474]  | JIGUANG | D - [JMSGUser] Action - p_callBackLoginError
2017-08-10 19:56:38.783745+0800 DL[5191:1598474]  | JIGUANG | D - [JIGUANGService] Action - setAlias:  callbackSelector:object:
2017-08-10 19:56:38.784633+0800 DL[5191:1598474]  | JIGUANG | D - [JIGUANGService] Action - setTags:(null) alias:  callbackSelector:object:
2017-08-10 19:56:38.785930+0800 DL[5191:1598474]  | JIGUANG | D - [JIGUANGService] Action - setTags: (null) alias:  callbackSelector:target:
2017-08-10 19:56:38.823932+0800 DL[5191:1598197]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
2017-08-10 19:56:38.852646+0800 DL[5191:1598474]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
2017-08-10 19:56:38.853209+0800 DL[5191:1598197]  | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
2017-08-10 19:56:39.147975+0800 DL[5191:1598197]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command

就这样 然后在点登录还是一样报TCP is not link to success 每次一进入应用就是这样 过了好大一会儿 差不多得有十分钟才可以,我这边的网速都很正常


(过瘾) #8

完整日志,连不上到重连到连上了,麻烦帮忙查一下啊 现在TCP老连接不上好多功能都不能用,android那边都很正常,就IOS不行

2017-08-10 20:58:49.961968 DL[517:91336]  | JIGUANG | D - [JMSGUser] Action - loginWithUsername::: - username:18951658333
2017-08-10 20:58:50.007358 DL[517:91276]  | JIGUANG | D - [JMessage+JMSGInner] Action - sendRequest - TCP
2017-08-10 20:58:50.030179 DL[517:91336]  | JIGUANG | D - [JIGUANGIMController] send im request with type:jmsg_type_login
2017-08-10 20:58:50.034059 DL[517:91276]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
2017-08-10 20:58:57.351609 DL[517:91336]  | JIGUANG | D - [JIGUANGIMDispatchController+imple] receive log in response
2017-08-10 20:58:57.353431 DL[517:91276]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
2017-08-10 20:58:57.354953 DL[517:91336]  | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
2017-08-10 20:58:57.356744 DL[517:91276]  | JIGUANG | D - [JIGUANGIMController] Request have response for type - jmsg_type_login
2017-08-10 20:58:57.358906 DL[517:91336]  | JIGUANG | D - [JIGUANGUserDefaultsController] set im flag with:login
2017-08-10 20:58:57.361192 DL[517:91276]  | JIGUANG | D - [JMessage+JMSGInner] Action - jmsg_userLogoutClearAllCache
2017-08-10 20:58:57.366786 DL[517:91276]  | JIGUANG | D - [JMSGSyncConversation] Action - stopSyncHeartbeatTimer
2017-08-10 20:58:57.369330 DL[517:91336]  | JIGUANG | D - [JMSGDBManager] Action - logOutDB
2017-08-10 20:58:57.372184 DL[517:91276]  | JIGUANG | I - [JMessage+JMSGInner] Action - jmsg_clearCurrentUser
2017-08-10 20:58:57.381778 DL[517:91276]  | JIGUANG | I - [JMSGUser] tcp login user success, user: <JMSGUser, 0xdc7f5c0> - [ARRAY - uid:84934913, username:18951658333, nickname:<null>, noteName:<null>, noteText:<null>, gender:0, birthday:<null>, avatar:<null>, region:<null>, siganature:<null>, address:<null>, createTime:<null>, appKey:<null>]
2017-08-10 20:58:57.384486 DL[517:91336]  | JIGUANG | D - [JMSGDBManager] Action - initDB
2017-08-10 20:58:57.386296 DL[517:91276]  | JIGUANG | D - [JMSGDBManager] Action - setupDB
2017-08-10 20:58:57.390987 DL[517:91336]  | JIGUANG | D - [JMSGDBManager] The current user db path: /var/mobile/Containers/Data/Application/F6ADD723-B6C9-42E9-B2FA-7D1CDDDB3677/Documents/18951658333_6361363f22a0e22c1c19b659/JMessage_18951658333_6361363f22a0e22c1c19b659.db
2017-08-10 20:58:57.406659 DL[517:91336]  | JIGUANG | D - [JMSGSyncConversation] Action - jmsg_startSyncHeartBeatTimerFromLogin
2017-08-10 20:58:57.408365 DL[517:91276]  | JIGUANG | D - [JMSGSyncConversation] Action - startSyncHeartbeatTimer
2017-08-10 20:58:57.410411 DL[517:91336]  | JIGUANG | D - [JMSGSyncConversation] Action - stopSyncHeartbeatTimer
2017-08-10 20:58:57.412524 DL[517:91276]  | JIGUANG | D - [JMSGSyncConversation] Lazy load syncKey:1502334903103
2017-08-10 20:58:57.414180 DL[517:91336]  | JIGUANG | D - [JMSGSyncConversation] Action - jmsg_sendSyncConversationSyncCheck synckey:1502334903103
2017-08-10 20:58:57.416999 DL[517:91336]  | JIGUANG | D - [JMSGUser+JMSGInner] Action - pp_updateCurrentUserInfoWithHandler
2017-08-10 20:58:57.419321 DL[517:91276]  | JIGUANG | D - [JMSGUser+JMSGInner] Action - jmsg_userInfoArrayWithIDArray::::, idArray count:1, appKey: *****
2017-08-10 20:58:57.421632 DL[517:91336]  | JIGUANG | D - [JMSGUserHttp] Action - usersInfoArrayWithIDArray::::, id count: 1, type:request user by username, appkey:*****
2017-08-10 20:58:57.429701 DL[517:91336]  | JIGUANG | D - [JMSGSyncConversation] Lazy load syncKey:1502334903103
2017-08-10 20:58:57.436470 DL[517:91276]  | JIGUANG | D - [JMSGSyncConversation] Action - p_syncConversationSyncCheckOrACKRequest: type=39,syncKey:1502334903103
2017-08-10 20:58:57.457316 DL[517:91398]  | JIGUANG | D - [JMSGSyncConversation] Lazy load syncKey:1502334903103
2017-08-10 20:58:57.463397 DL[517:91492]  | JIGUANG | D - [JMessage+JMSGInner] Action - sendRequest - TCP
2017-08-10 20:58:57.495070 DL[517:91397]  | JIGUANG | D - [JIGUANGService] Action - setAlias: 1a6cb469c695478b9cc6332d722c8cdc callbackSelector:object:
2017-08-10 20:58:57.497403 DL[517:91397]  | JIGUANG | D - [JIGUANGService] Action - setTags:(null) alias: 1a6cb469c695478b9cc6332d722c8cdc callbackSelector:object:
2017-08-10 20:58:57.499201 DL[517:91336]  | JIGUANG | D - [JIGUANGService] Action - setTags: (null) alias: 1a6cb469c695478b9cc6332d722c8cdc callbackSelector:target:
2017-08-10 20:58:57.501128 DL[517:91397]  | JIGUANG | D - [JMSGConversation] Action - allConversations:
2017-08-10 20:58:57.587853 DL[517:91336]  | JIGUANG | D - [JMSGHttpManager] Action - pp_conserveRequest::::: - isLoadingToken, save request
2017-08-10 20:58:57.599085 DL[517:91276]  | JIGUANG | D - [JMSGFriendManager] Action - getFriendList
2017-08-10 20:58:57.603222 DL[517:91276]  | JIGUANG | D - [JIGUANGIMController] send im request with type:(null)
2017-08-10 20:58:57.605527 DL[517:91276]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
2017-08-10 20:58:57.622036 DL[517:91276]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
2017-08-10 20:58:57.637093 DL[517:91336]  | JIGUANG | D - [JMSGConversation] Lazy load target
2017-08-10 20:58:57.658340 DL[517:91497]  | JIGUANG | D - [JMSGHttpManager] Action - getTokenAuthorizationByUid:::
2017-08-10 20:58:57.665309 DL[517:91336]  | JIGUANG | D - [JMSGHttpManager] start get token authorization by uid
2017-08-10 20:58:57.689477 DL[517:91498]  | JIGUANG | D - [JMSGUserHttp] Actioin - getNoDisturbListWithParameter::
2017-08-10 20:58:57.700860 DL[517:91498]  | JIGUANG | D - [JMSGHttpManager] Action - pp_conserveRequest::::: - isLoadingToken, save request
2017-08-10 20:58:57.705700 DL[517:91276]  | JIGUANG | D - [JMSGUserHttp] Actioin - getUserBlackListCompletionHandler:
2017-08-10 20:58:57.707805 DL[517:91397]  | JIGUANG | D - [JMSGHttpManager] Action - pp_conserveRequest::::: - isLoadingToken, save request

2017-08-10 20:58:57.710960 DL[517:91336]  | JIGUANG | D - [JMSGFriendManager] Action - p_contactManagerBridgeRequest
2017-08-10 20:58:57.716665 DL[517:91336]  | JIGUANG | D - [JMSGFriendManager] Action - p_getgetFriendListCompletionHandler
2017-08-10 20:58:57.718945 DL[517:91276]  | JIGUANG | D - [JMSGUserHttp] Actioin - getFriendListWithParameter:
2017-08-10 20:58:57.721546 DL[517:91276]  | JIGUANG | D - [JMSGHttpManager] Action - pp_conserveRequest::::: - isLoadingToken, save request
2017-08-10 20:58:57.724386 DL[517:91336]  | JIGUANG | D - [JMSGHttpManager] Action - pp_conserveRequest::::: - isLoadingToken, save request
2017-08-10 20:58:58.072510 DL[517:91497]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
2017-08-10 20:58:58.074765 DL[517:91497]  | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
2017-08-10 20:58:58.206168 DL[517:91497]  | JIGUANG | D - [JMSGHttpManager] get token success, token is Basic ODQ5MzQ5MTM6NGFUVUtGUU51WEk3dnBPaDc1ZUtFRkN5aVVRPQ==
2017-08-10 20:58:58.208573 DL[517:91497]  | JIGUANG | D - [JMSGHttpManager] conserved request count :5
2017-08-10 20:58:58.291409 DL[517:91492]  | JIGUANG | D - [JIGUANGIMDispatchController+imple] receive sync check response
2017-08-10 20:58:58.293038 DL[517:91336]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
2017-08-10 20:58:58.295693 DL[517:91336]  | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
2017-08-10 20:58:58.298439 DL[517:91492]  | JIGUANG | D - [JIGUANGIMController] Request have response for type - (null)
2017-08-10 20:58:58.466173 DL[517:91276]  | JIGUANG | D - [JMSGUser] login get user blacklist:success
2017-08-10 20:58:58.473124 DL[517:91397]  | JIGUANG | D - [JMSGUser] login get user no disturb list:success
2017-08-10 20:58:58.476682 DL[517:91397]  | JIGUANG | D - [JMSGUser] login get user group shield list:success
2017-08-10 20:58:58.522585 DL[517:91397]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
2017-08-10 20:58:58.574258 DL[517:91336]  | JIGUANG | D - [JMSGUser] login get user friend list:success
2017-08-10 20:58:58.581628 DL[517:91336]  | JIGUANG | D - [JMSGUser+JMSGInner] Logged in myInfo - <JMSGUser, 0xdf6cd10> - [ARRAY - uid:84934913, username:**, nickname:**, noteName:<null>, noteText:<null>, gender:0, birthday:<null>, avatar:<null>, region:<null>, siganature:<null>, address:<null>, createTime:<null>, appKey:*****]
2017-08-10 20:58:58.583875 DL[517:91336]  | JIGUANG | D - [JMSGUser] logged user get token first

(过瘾) #9

在线等,很着急,登录时总是报这个错误

2017-08-10 19:56:22.757158+0800 DL[5191:1598197] | JIGUANG | I - [JMSGUser] TCP is not link to success,wait a moment
2017-08-10 19:56:38.764017+0800 DL[5191:1598474] | JIGUANG | D - [JMSGUser] Action - p_callBackLoginError
2017-08-10 19:56:38.783745+0800 DL[5191:1598474] | JIGUANG | D - [JIGUANGService] Action - setAlias: callbackSelector:object:
2017-08-10 19:56:38.784633+0800 DL[5191:1598474] | JIGUANG | D - [JIGUANGService] Action - setTags:(null) alias: callbackSelector:object:
2017-08-10 19:56:38.785930+0800 DL[5191:1598474] | JIGUANG | D - [JIGUANGService] Action - setTags: (null) alias: callbackSelector:target:
2017-08-10 19:56:38.823932+0800 DL[5191:1598197] | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
2017-08-10 19:56:38.852646+0800 DL[5191:1598474] | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
2017-08-10 19:56:38.853209+0800 DL[5191:1598197] | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
2017-08-10 19:56:39.147975+0800 DL[5191:1598197] | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command

(过瘾) #10

我在使用的过程中发现了一个问题,第一次登录什么网络也登录不上,但是我切换了一个网络就可以登录上了,比如4G切换成无线,或者无线切换成4G 就可以了


(翻不完的夏天) #11

直接使用4G网络也无法连接上?这个tcp没有连接上一般都是网络原因,你可以把从初始化开始的日志发过来看一下


(过瘾) #12

第一次初始化4G或无线都无法链接上,必须切换一下网络才可以,很头疼的问题,日志如下:

2017-08-14 11:29:26.997764+0800 DL[9478:2599497] ### pluginInitialize
2017-08-14 11:29:27.002786+0800 DL[9478:2599699]  | JIGUANG | I - [JMessage] this is official version SDK.
2017-08-14 11:29:27.024393+0800 DL[9478:2599661]  | JIGUANG | I - [JMSGClientController] 
------------------- JMessage SDK --------------------
------------------ JMessage SDK version:3.2.0, buildId:45 ---------
--------------------JCore Lib Version:1.1.3----------------------------
-----------------AppKey:********----------------
----------------------------------------------------------------
2017-08-14 11:29:27.024762+0800 DL[9478:2599497] THREAD WARNING: ['JMessageNewPlugin'] took '26.793945' ms. Plugin should use a background thread.
2017-08-14 11:29:27.027246+0800 DL[9478:2599497] username {
    password = ******;
    username = 18951658333;
}
2017-08-14 11:29:27.027295+0800 DL[9478:2599699]  | JIGUANG | I - [JMSGClientController] Action - jmessage setup
2017-08-14 11:29:27.028522+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGIMController] loginState:1
2017-08-14 11:29:27.029269+0800 DL[9478:2599663]  | JIGUANG | D - [JMSGUser] Action - loginWithUsername::: - username:18951658333
2017-08-14 11:29:27.031334+0800 DL[9478:2599663]  | JIGUANG | I - [JMSGUser] TCP is not link to success,wait a moment
2017-08-14 11:29:27.410995+0800 DL[9478:2599497] Finished load of: file:///var/containers/Bundle/Application/5F27FA2E-EDE1-4F46-8765-033B5915849F/DL.app/www/main.html
2017-08-14 11:29:29.031326+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGNetworkController] Action - trySetupSession
2017-08-14 11:29:29.031890+0800 DL[9478:2599623]  | JIGUANG | D - [JIGUANGHttpSessionController] Action - setupSession
2017-08-14 11:29:29.032428+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGNetworkController] userDefaut verified: 1, curNetworkStatus: 2
2017-08-14 11:29:43.033944+0800 DL[9478:2599699]  | JIGUANG | D - [JMSGUser] Action - p_callBackLoginError
2017-08-14 11:29:43.074008+0800 DL[9478:2599698]  | JIGUANG | D - [JIGUANGService] Action - setAlias:  callbackSelector:object:
2017-08-14 11:29:43.074797+0800 DL[9478:2599698]  | JIGUANG | D - [JIGUANGService] Action - setTags:(null) alias:  callbackSelector:object:
2017-08-14 11:29:43.075467+0800 DL[9478:2599698]  | JIGUANG | D - [JIGUANGService] Action - setTags: (null) alias:  callbackSelector:target:
2017-08-14 11:29:43.094058+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGSessionController] Action - doSendTcpRequest
2017-08-14 11:29:43.147605+0800 DL[9478:2599663]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command
2017-08-14 11:29:43.148556+0800 DL[9478:2599698]  | JIGUANG | D - [JIGUANGSessionController] Action - onAckOrRespReceived:
2017-08-14 11:29:43.794633+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGTcpSocket] Got tcp command

(过瘾) #13

这是网络发生变化连接成功的日志:

2017-08-14 11:30:40.544310+0800 DL[9478:2599497] username {    password = 12345678;    username = ****; } 2017-08-14 11:30:40.545289+0800 DL[9478:2599699]  | JIGUANG | D -
 [JMSGUser] Action - loginWithUsername::: - username:18951658333 2017-08-14 11:30:40.547997+0800 DL[9478:2599698]  | JIGUANG | I - 
[JMSGUser] TCP is not link to success,wait a moment 2017-08-14 11:30:49.546998+0800 DL[9478:2600262]  | JIGUANG | W -
 [JIGUANGNetworkController]网络发生变化,重启session 2017-08-14 11:30:49.548437+0800 DL[9478:2599698]  | JIGUANG | D -
 [JIGUANGUtilities] JCOREPostNotificationWithUserInfo name: kJPUSHNetworkDidCloseNotification (null) 2017-08-14 11:30:49.549010+0800 DL[9478:2599698]  | JIGUANG | D - 
[JMSGReceiver] Action - p_didJPushDidCloseNotification: 2017-08-14 11:30:49.587593+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGSessionController] Action - reenqueueSendingRequests 2017-08-14 11:30:49.590477+0800 DL[9478:2599698]  | JIGUANG | D -
 [JIGUANGTcpSocket] 关闭TCP连接 2017-08-14 11:30:49.592800+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGUdpSocket] close udp socket,info: 2017-08-14 11:30:49.810376+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGUtilities] NetWork Check Result cunrrent netWork ipv4 2017-08-14 11:30:49.812234+0800 DL[9478:2599698]  | JIGUANG | D - [JIGUANGSessionController] Action - startDelaySetupTimer 2017-08-14 11:30:49.813147+0800 DL[9478:2599698]  | JIGUANG | D -
 [JIGUANGSessionController] session will setup delayed with time interval: 2.000000 2017-08-14 11:30:49.814251+0800 DL[9478:2599698]  | JIGUANG | D -
 [JIGUANGNetworkController] Action - trySetupSession 2017-08-14 11:30:49.814751+0800 DL[9478:2599699]  | JIGUANG | D - 
[JIGUANGHttpSessionController] Action - setupSession 2017-08-14 11:30:49.815240+0800 DL[9478:2599698]  | JIGUANG | D - 
[JIGUANGNetworkController] userDefaut verified: 1, curNetworkStatus: 3 2017-08-14 11:30:49.816081+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGUtilities] JCOREPostNotificationWithUserInfo name: kJPFNetworkIsConnectingNotification (null) 2017-08-14 11:30:49.816929+0800 DL[9478:2599698]  | JIGUANG | D - [JIGUANGSessionController] Action - connect 2017-08-14 11:30:49.817375+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGSessionController] Action - isSisOnProtect 2017-08-14 11:30:49.818101+0800 DL[9478:2599698]  | JIGUANG | D - [JIGUANGSessionController] sis is not on protect 2017-08-14 11:30:49.818704+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGSessionController] Action - reset sis cache 2017-08-14 11:30:49.819184+0800 DL[9478:2599698]  | JIGUANG | D - [JIGUANGAddressController] 开始Sis解析 2017-08-14 11:30:49.820016+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGAddressController] Action - sendSisRequest 2017-08-14 11:30:49.825247+0800 DL[9478:2599663]  | JIGUANG | D -
 [JIGUANGAddressController] get address :117.121.49.100 from host : s.jpush.cn 2017-08-14 11:30:49.825792+0800 DL[9478:2599663]  | JIGUANG | D -
 [JIGUANGAddressController] Action - sendSisRequest:toDefaultPort 2017-08-14 11:30:49.826256+0800 DL[9478:2599698]  | JIGUANG | D -
 [JIGUANGUdpSocket] close udp socket,info: 2017-08-14 11:30:49.920611+0800 DL[9478:2599663]  | JIGUANG | D - [JMSGReceiver] Action - p_applicationDidBecomeActive 2017-08-14 11:30:49.953662+0800 DL[9478:2599663]  | JIGUANG | D -
 [JIGUANGUdpSocket] send udp data 2017-08-14 11:30:49.955083+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGUdpSocket] send udp data succeed 2017-08-14 11:30:49.955891+0800 DL[9478:2600262]  | JIGUANG | D - [JIGUANGUdpSocket] udp socket begin send behavior 2017-08-14 11:30:50.010195+0800 DL[9478:2599663]  | JIGUANG | D -
 [JIGUANGAddressController] Action - parse 2017-08-14 11:30:50.042190+0800 DL[9478:2599663]  | JIGUANG | D - [JIGUANGAddressController] Action - parse ips address 2017-08-14 11:30:50.168931+0800 DL[9478:2599699]  | JIGUANG | D - 
[JIGUANGAddressController] Action - parseUdpReportAddress: 2017-08-14 11:30:50.196264+0800 DL[9478:2599699]  | JIGUANG | D -
 [JIGUANGAddressController] Action - parseOptionAddress 2017-08-14 11:30:50.196995+0800 DL[9478:2599699]  | JIGUANG | D -
 [JIGUANGUdpSocket] close udp socket,info: 2017-08-14 11:30:50.198419+0800 DL[9478:2600262]  | JIGUANG | D - [JIGUANGAddressController] receive sis result 2017-08-14 11:30:50.199109+0800 DL[9478:2599699]  | JIGUANG | D - [JIGUANGSessionController] Action - connectTcp:afterConnectUdp: 2017-08-14 11:30:50.199634+0800 DL[9478:2600262]  | JIGUANG | D -
 [JIGUANGSessionController] Action - connectTcp: 2017-08-14 11:30:50.200224+0800 DL[9478:2600262]  | JIGUANG | D - [JIGUANGSessionController] connectTcp:118.145.3.95:7003 2017-08-14 11:30:50.200894+0800 DL[9478:2599699]  | JIGUANG | I -
 [JIGUANGSessionController] connecting with coreAddr 118.145.3.95,port 7003 2017-08-14 11:30:50.254115+0800 DL[9478:2599663]  | JIGUANG | D - 
[JIGUANGTcpSocket] 连接主机成功

(raoxd) #14

你的登录操作是在启动的时候就调用吗?看日志好像是


(过瘾) #15

我是先初始化在调用登录的
//初始化极光im
window.JMessage.init({‘isOpenMessageRoaming’: false});
window.JMessage.setDebugMode({‘enable’: true});

//然后调用登录,而且考虑到初始化的时间,我等了一会在调用登录也是一样


(过瘾) #16

问题原因找到了,因为集成了原生的jpush,按照官方文档在appdelegate中初始化后就有问题,注释掉就正常了,再后来把初始化换到了手动写的插件里的initplugin方法就可以了,但是按照官方大哥做的demo,他集成了原生jpush,cordova插件的im就没问题,不知道为啥子。。。


(Michaelhpe) #17

我没集成原生jpush也有这个问题,只在iOS发现。


#18

请给出你的插件版本、你的具体报错日志