官方demo集成IM, 频繁切换前后台导致,点击发送按钮时候无任何数据,异常为:JIGUANG-JMessage: [CommonUtils] [createSendMessage] have not logged in!

标签: #<Tag:0x00007f658231f4b8>
compile 'cn.jiguang.sdk:jmessage:2.9.0'
// 此处以J
compile 'cn.jiguang.sdk:jcore:2.0.0'

发现在demo中有:

 @Override
    protected void onPause() {
        super.onPause();
        JMessageClient.exitConversation();//退出会话。UI层在退出聊天会话界面时调用,清除当前正在聊天的对象,之后收到对应的用户或群组发来的消息时,会正常展示通知栏通知。
        ekBar.reset();
    }

    @Override
    protected void onResume() {
        if (mIsSingle) {
            if (null != mTargetId) {
                String appKey = getIntent().getStringExtra(TARGET_APP_KEY);
                JMessageClient.enterSingleConversation(mTargetId, appKey);//UI层在进入聊天会话界面时调用,设置当前正在聊天的对象,调用此接口之后,收到对应用户发来的消息时,sdk不会弹出通知栏提示。同时还会清掉与该聊天对象会话的未读消息数,以及通知栏通知
            }
        } else if (!isChatRoom) {
            long groupId = getIntent().getLongExtra(GROUP_ID, 0);
            if (groupId != 0) {
                JGApplication.isAtMe.put(groupId, false);
                JGApplication.isAtall.put(groupId, false);
                JMessageClient.enterGroupConversation(groupId);
            }
        }

        //历史消息中删除后返回到聊天界面刷新界面
        if (JGApplication.ids != null && JGApplication.ids.size() > 0) {
            for (Message msg : JGApplication.ids) {
                mChatAdapter.removeMessage(msg);
            }
        }
        if (mChatAdapter != null)
            mChatAdapter.notifyDataSetChanged();
        //发送名片返回聊天界面刷新信息
        if (SharePreferenceManager.getIsOpen()) {
            if (!isChatRoom) {
                initData();
            }
            SharePreferenceManager.setIsOpen(false);
        }
        super.onResume();

    }

日志为:

09-04 19:15:46.184 449-449/? D/libEGL: eglTerminate EGLDisplay = 0xbec583bc
09-04 19:15:46.514 1505-2382/? D/InputReader: Input event(9): value=1 when=121710113830000
09-04 19:15:46.514 1505-2382/? D/InputReader: Input event(9): value=1 when=121710113830000
09-04 19:15:46.514 1505-2382/? I/InputReader: Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.4812 ] when=121710113830000
09-04 19:15:46.514 1505-2382/? D/InputReader: lastThreadEndTime = 121709512776434, currentThreadStartTime = 121709512780340, diff = 0
09-04 19:15:46.514 1505-2381/? I/InputDispatcher: Delivering touch to (2509): action: 0x4, toolType: 1
09-04 19:15:46.514 5852-5852/? D/AutoHideHelper: ###check Single invalid
09-04 19:15:46.514 1505-2381/? I/InputDispatcher: Delivering touch to (5852): action: 0x4, toolType: 1
09-04 19:15:46.514 1505-2381/? I/InputDispatcher: Delivering touch to (9473): action: 0x0, toolType: 1
09-04 19:15:46.514 9473-9473/? D/ViewRootImpl: ViewPostImeInputStage processPointer 0
09-04 19:15:46.594 1505-2382/? D/InputReader: Input event(9): value=0 when=121710198025000
09-04 19:15:46.594 1505-2382/? D/InputReader: Input event(9): value=0 when=121710198025000
09-04 19:15:46.594 1505-2382/? I/InputReader: Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=121710198025000
09-04 19:15:46.594 1505-2381/? I/InputDispatcher: Delivering touch to (9473): action: 0x1, toolType: 1
09-04 19:15:46.594 9473-9473/? D/ViewRootImpl: ViewPostImeInputStage processPointer 1
09-04 19:15:46.904 1505-2382/? D/InputReader: Input event(9): value=1 when=121710501474000
09-04 19:15:46.904 1505-2382/? D/InputReader: Input event(9): value=1 when=121710501474000
09-04 19:15:46.904 1505-2382/? I/InputReader: Touch event's action is 0x0 (deviceType=0) [pCnt=1, s=0.4813 ] when=121710501474000
09-04 19:15:46.904 1505-2382/? D/InputReader: lastThreadEndTime = 121710198709715, currentThreadStartTime = 121710198713413, diff = 0
09-04 19:15:46.904 1505-2381/? I/InputDispatcher: Delivering touch to (2509): action: 0x4, toolType: 1
09-04 19:15:46.904 1505-2381/? I/InputDispatcher: Delivering touch to (5852): action: 0x4, toolType: 1
09-04 19:15:46.904 5852-5852/? D/AutoHideHelper: ###check Single invalid
09-04 19:15:46.904 1505-2381/? I/InputDispatcher: Delivering touch to (30524): action: 0x0, toolType: 1
09-04 19:15:46.904 30524-30524/com.ruiyin.lovelife D/ViewRootImpl: ViewPostImeInputStage processPointer 0
09-04 19:15:46.984 1505-2382/? D/InputReader: Input event(9): value=0 when=121710584284000
09-04 19:15:46.984 1505-2382/? D/InputReader: Input event(9): value=0 when=121710584284000
09-04 19:15:46.984 1505-2382/? I/InputReader: Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=] when=121710584284000
09-04 19:15:46.984 1505-2381/? I/InputDispatcher: Delivering touch to (30524): action: 0x1, toolType: 1
09-04 19:15:46.984 30524-30524/com.ruiyin.lovelife D/ViewRootImpl: ViewPostImeInputStage processPointer 1
09-04 19:15:46.994 30524-30524/com.ruiyin.lovelife D/LoveLife: ╔════════════════════════════════════════════════════════════════════════════════════════
09-04 19:15:46.994 30524-30524/com.ruiyin.lovelife D/LoveLife: ║ Thread: main
09-04 19:15:46.994 30524-30524/com.ruiyin.lovelife D/LoveLife: ╟────────────────────────────────────────────────────────────────────────────────────────
09-04 19:15:46.994 30524-30524/com.ruiyin.lovelife D/LoveLife: ║ ChatActivity$8.onClick  (ChatActivity.java:489)
09-04 19:15:46.994 30524-30524/com.ruiyin.lovelife D/LoveLife: ║    LogUtils.d  (LogUtils.java:28)
09-04 19:15:46.994 30524-30524/com.ruiyin.lovelife D/LoveLife: ╟────────────────────────────────────────────────────────────────────────────────────────
09-04 19:15:46.994 30524-30524/com.ruiyin.lovelife D/LoveLife: ║ create send message conversation = Conversation{type=single, targetId='111111850318', latestText='jjk', latestType=text, lastMsgDate=1567595682859, unReadMsgCnt=0, msgTableName='msg826939247', targetAppkey='d1ad6fcb29f686c680980518', extra=''}==content==cn.jpush.im.android.api.content.TextContent@bed2c1e
09-04 19:15:46.994 30524-30524/com.ruiyin.lovelife D/LoveLife: ╚════════════════════════════════════════════════════════════════════════════════════════
09-04 19:15:46.994 30524-30524/com.ruiyin.lovelife E/JIGUANG-JMessage: [CommonUtils] [createSendMessage] have not logged in!
09-04 19:15:46.994 30524-30524/com.ruiyin.lovelife E/JIGUANG-JMessage: [JMessageClient] [sendMessage] message should not be null
09-04 19:15:46.994 449-600/? D/libEGL: eglTerminate EGLDisplay = 0xb694164c
09-04 19:15:46.994 449-600/? D/libEGL: eglTerminate EGLDisplay = 0xb694164c
09-04 19:15:47.004 9473-9473/? D/ViewRootImpl: #3 mView = null
09-04 19:15:47.004 449-10753/? I/SurfaceFlinger: id=4376 Removed QopupWindow (7/10)
09-04 19:15:47.004 449-4780/? I/SurfaceFlinger: id=4376 Removed QopupWindow (-2/10)
09-04 19:15:47.004 449-449/? D/libEGL: eglTerminate EGLDisplay = 0xbec583bc
09-04 19:15:47.034 1505-1505/? D/InputMethodManagerService: [HARDWARE_KEYBOARD] (refreshImeWindowVis) isChineseRegion = true, isFolderPhone= false isFolderOpen = false hardKeyShown = false
09-04 19:15:47.034 1505-1505/? D/InputMethodManagerService: [HARDWARE_KEYBOARD] (refreshImeWindowVis) mImeWindowVis= 3 inputVisible = truehaveHardKeyboard = false hardKeyShown = false
09-04 19:15:47.044 2509-2509/? D/MultiSimUtils: getDualModePINPUKRequest : false
09-04 19:15:47.044 2509-2509/? D/MultiSimUtils: getDualModePINPUKRequest : false
09-04 19:15:47.044 1505-1505/? D/MARsPolicyManager: NotificationListenerService OngoingNotificationPosted : android
09-04 19:15:47.044 5852-5852/? D/EventStateReceiver: [c] IS_VISIBLE_WINDOW #1:true, IS_MOVABLE_KEYPAD:false
09-04 19:15:47.044 5852-5852/? E/EventStateReceiver: mIsOpenIME:true  isOpenIME:true
09-04 19:15:47.054 22124-22124/? E/ProxyStatusReceiver: no this type!
09-04 19:15:47.064 2509-2509/? D/MultiSimUtils: getDualModePINPUKRequest : false
09-04 19:15:47.064 2509-2509/? D/StatusBar: getNumberOfActiveSim: 1
09-04 19:15:47.064 2509-2509/? D/StatusBar: ----- contentsUnchanged : true, bigContentsUnchanged - true, headsUpContentsUnchanged - true , publicUnchanged true
09-04 19:15:47.064 2509-2509/? D/MultiSimUtils: getDualModePINPUKRe

你使用的是哪一个 demo,SDK 包里面的 demo,还是 JChat,是最新下载的吗?

提供你「登陆成功」-「频繁切换前后台」-「提示未登录」这整个操作的完整的日志信息

使用的是JChat集成的

日志:

09-05 14:21:37.655 29606-29606/com.ruiyin.merchant D/ViewRootImpl: ViewPostImeInputStage processPointer 0
09-05 14:21:37.695 29606-29606/com.ruiyin.merchant D/ViewRootImpl: ViewPostImeInputStage processPointer 1
09-05 14:21:37.705 29606-29606/com.ruiyin.merchant D/ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{fba3c07 V.E...... R.....I. 0,0-0,0}
09-05 14:21:37.735 29606-29779/com.ruiyin.merchant I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
09-05 14:21:37.735 29606-29779/com.ruiyin.merchant I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
09-05 14:21:37.765 29606-29606/com.ruiyin.merchant D/ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 0 - 0, 0) vi=Rect(0, 0 - 0, 0) or=1
09-05 14:21:38.085 29606-29606/com.ruiyin.merchant E/merchant_client: ╔════════════════════════════════════════════════════════════════════════════════════════
09-05 14:21:38.085 29606-29606/com.ruiyin.merchant E/merchant_client: ║ Thread: main
09-05 14:21:38.085 29606-29606/com.ruiyin.merchant E/merchant_client: ╟────────────────────────────────────────────────────────────────────────────────────────
09-05 14:21:38.085 29606-29606/com.ruiyin.merchant E/merchant_client: ║ BasicCallback.gotResult  (BasicCallback.java:-1)
09-05 14:21:38.085 29606-29606/com.ruiyin.merchant E/merchant_client: ║    IM_Manager$2.gotResult  (IM_Manager.java:115)
09-05 14:21:38.085 29606-29606/com.ruiyin.merchant E/merchant_client: ╟────────────────────────────────────────────────────────────────────────────────────────
09-05 14:21:38.085 29606-29606/com.ruiyin.merchant E/merchant_client: ║ 极光IM注册失败,用户已存在,将直接登录
09-05 14:21:38.085 29606-29606/com.ruiyin.merchant E/merchant_client: ╚════════════════════════════════════════════════════════════════════════════════════════
09-05 14:21:38.105 29606-29606/com.ruiyin.merchant D/ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{b9e380b V.E...... R.....I. 0,0-0,0}
09-05 14:21:38.115 29606-29606/com.ruiyin.merchant D/ViewRootImpl: #3 mView = null
09-05 14:21:38.225 29606-29606/com.ruiyin.merchant D/merchant_client: ╔════════════════════════════════════════════════════════════════════════════════════════
09-05 14:21:38.225 29606-29606/com.ruiyin.merchant D/merchant_client: ║ Thread: main
09-05 14:21:38.225 29606-29606/com.ruiyin.merchant D/merchant_client: ╟────────────────────────────────────────────────────────────────────────────────────────
09-05 14:21:38.225 29606-29606/com.ruiyin.merchant D/merchant_client: ║ BasicCallback.gotResult  (BasicCallback.java:-1)
09-05 14:21:38.225 29606-29606/com.ruiyin.merchant D/merchant_client: ║    IM_Manager$5.gotResult  (IM_Manager.java:227)
09-05 14:21:38.225 29606-29606/com.ruiyin.merchant D/merchant_client: ╟────────────────────────────────────────────────────────────────────────────────────────
09-05 14:21:38.225 29606-29606/com.ruiyin.merchant D/merchant_client: ║ 本人头像:null
09-05 14:21:38.225 29606-29606/com.ruiyin.merchant D/merchant_client: ╚════════════════════════════════════════════════════════════════════════════════════════
09-05 14:21:38.225 29606-29606/com.ruiyin.merchant W/ARouter::: ARouter::No postcard![ ] 
09-05 14:21:38.225 29606-29606/com.ruiyin.merchant W/ARouter::: ARouter::No postcard![ ] 
09-05 14:21:38.225 29606-29606/com.ruiyin.merchant D/ARouter::: The group [jiguang] starts loading, trigger by [/jiguang/im/ConversationListActivity][ ] 
09-05 14:21:38.235 29606-29606/com.ruiyin.merchant D/ARouter::: The group [jiguang] has already been loaded, trigger by [/jiguang/im/ConversationListActivity][ ] 
09-05 14:21:38.235 29606-29606/com.ruiyin.merchant I/ARouter::: Thread production, name is [ARouter task pool No.1, thread No.4][ ] 
09-05 14:21:38.235 29606-29606/com.ruiyin.merchant D/ViewRootImpl: #3 mView = null
09-05 14:21:38.265 29606-29606/com.ruiyin.merchant E/ViewRootImpl: sendUserActionEvent() mView == null
09-05 14:21:38.265 29606-29606/com.ruiyin.merchant I/Timeline: Timeline: Activity_launch_request id:com.ruiyin.merchant time:146183017
09-05 14:21:38.305 29606-29606/com.ruiyin.merchant E/ViewRootImpl: sendUserActionEvent() mView == null
09-05 14:21:38.305 29606-29606/com.ruiyin.merchant E/ViewRootImpl: sendUserActionEvent() mView == null
09-05 14:21:38.305 29606-29606/com.ruiyin.merchant D/CrashReport: >>> com.ruiyin.merchantclient.view.activity.MainPageActivity onPaused <<<
09-05 14:21:38.345 29606-29606/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ConversationListActivity onCreated <<<
09-05 14:21:38.405 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.405 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.415 29606-29606/com.ruiyin.merchant D/AbsListView: Get MotionRecognitionManager
09-05 14:21:38.425 29606-29606/com.ruiyin.merchant E/MotionRecognitionManager: mSContextService = android.hardware.scontext.ISContextService$Stub$Proxy@375364a
09-05 14:21:38.425 29606-29606/com.ruiyin.merchant E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@6aed9bb
09-05 14:21:38.425 29606-29606/com.ruiyin.merchant E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@6aed9bb
09-05 14:21:38.425 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.425 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.435 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.445 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.445 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.445 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.445 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.475 29606-29606/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ConversationListActivity onResumed <<<
09-05 14:21:38.475 29606-29606/com.ruiyin.merchant D/SecWifiDisplayUtil: Metadata value : none
09-05 14:21:38.475 29606-29606/com.ruiyin.merchant D/ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{24d1a52 I.E...... R.....I. 0,0-0,0}
09-05 14:21:38.515 29606-29606/com.ruiyin.merchant D/AbsListView: viewType is heaer or footer
09-05 14:21:38.515 29606-29606/com.ruiyin.merchant D/AbsListView: viewType is heaer or footer
09-05 14:21:38.515 29606-29606/com.ruiyin.merchant D/AbsListView: viewType is heaer or footer
09-05 14:21:38.525 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.525 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.525 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.535 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.535 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.535 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.565 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.565 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.575 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.575 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.575 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.575 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.595 29606-29794/com.ruiyin.merchant W/JIGUANG-JMessage: [AvatarDownloader] user do not have a avatar yet,can not start download!
09-05 14:21:38.595 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.595 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.595 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.605 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.605 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.605 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.605 29606-29795/com.ruiyin.merchant W/JIGUANG-JMessage: [AvatarDownloader] user do not have a avatar yet,can not start download!
09-05 14:21:38.615 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.615 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.615 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.615 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.615 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.625 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.625 29606-29796/com.ruiyin.merchant W/JIGUANG-JMessage: [AvatarDownloader] user do not have a avatar yet,can not start download!
09-05 14:21:38.635 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.635 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.635 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.635 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.635 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.635 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:38.645 29606-29782/com.ruiyin.merchant W/JIGUANG-JMessage: [AvatarDownloader] user do not have a avatar yet,can not start download!
09-05 14:21:38.655 29606-29606/com.ruiyin.merchant D/ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
09-05 14:21:38.655 29606-29606/com.ruiyin.merchant D/AbsListView: viewType is heaer or footer
09-05 14:21:38.655 29606-29606/com.ruiyin.merchant D/AbsListView: viewType is heaer or footer
09-05 14:21:38.655 29606-29606/com.ruiyin.merchant D/AbsListView: viewType is heaer or footer
09-05 14:21:38.715 29606-29606/com.ruiyin.merchant D/AbsListView: viewType is heaer or footer
09-05 14:21:38.715 29606-29606/com.ruiyin.merchant D/AbsListView: viewType is heaer or footer
09-05 14:21:38.715 29606-29606/com.ruiyin.merchant D/AbsListView: viewType is heaer or footer
09-05 14:21:38.765 29606-29606/com.ruiyin.merchant I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@d4e4edd time:146183514
09-05 14:21:39.485 29606-29606/com.ruiyin.merchant D/AbsListView: viewType is heaer or footer
09-05 14:21:39.485 29606-29606/com.ruiyin.merchant D/AbsListView: viewType is heaer or footer
09-05 14:21:39.485 29606-29606/com.ruiyin.merchant D/AbsListView: viewType is heaer or footer
09-05 14:21:56.865 29606-29606/com.ruiyin.merchant D/ViewRootImpl: ViewPostImeInputStage processPointer 0
09-05 14:21:56.935 29606-29606/com.ruiyin.merchant D/ViewRootImpl: ViewPostImeInputStage processPointer 1
09-05 14:21:56.935 29606-29606/com.ruiyin.merchant W/ARouter::: ARouter::No postcard![ ] 
09-05 14:21:56.935 29606-29606/com.ruiyin.merchant W/ARouter::: ARouter::No postcard![ ] 
09-05 14:21:56.945 29606-29606/com.ruiyin.merchant I/ARouter::: Thread production, name is [ARouter task pool No.1, thread No.5][ ] 
09-05 14:21:56.945 29606-29606/com.ruiyin.merchant I/Timeline: Timeline: Activity_launch_request id:com.ruiyin.merchant time:146201695
09-05 14:21:56.985 29606-29606/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ConversationListActivity onPaused <<<
09-05 14:21:57.005 29606-29606/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onCreated <<<
09-05 14:21:57.035 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.045 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.055 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.055 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.055 29606-29606/com.ruiyin.merchant D/AbsListView: Get MotionRecognitionManager
09-05 14:21:57.055 29606-29606/com.ruiyin.merchant E/MotionRecognitionManager: mSContextService = android.hardware.scontext.ISContextService$Stub$Proxy@263f1e
09-05 14:21:57.065 29606-29606/com.ruiyin.merchant E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@6b833ff
09-05 14:21:57.065 29606-29606/com.ruiyin.merchant E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@6b833ff
09-05 14:21:57.085 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.105 29606-29606/com.ruiyin.merchant D/AbsListView: Get MotionRecognitionManager
09-05 14:21:57.125 29606-29606/com.ruiyin.merchant I/MediaPlayer: Need to enable context aware info
09-05 14:21:57.125 29606-29606/com.ruiyin.merchant E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
09-05 14:21:57.125 29606-29606/com.ruiyin.merchant E/MediaPlayer-JNI: JNIMediaPlayerFactory: bIsQCMediaPlayerPresent 0
09-05 14:21:57.145 29606-29606/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onResumed <<<
09-05 14:21:57.145 29606-29606/com.ruiyin.merchant D/SecWifiDisplayUtil: Metadata value : none
09-05 14:21:57.145 29606-29606/com.ruiyin.merchant D/ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{83678e7 I.E...... R.....I. 0,0-0,0}
09-05 14:21:57.205 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.205 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.205 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.205 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.205 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.215 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.215 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.215 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.225 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.225 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.225 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.225 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.225 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.235 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.235 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.235 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.235 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.235 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.245 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.245 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.245 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.245 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.245 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.245 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.275 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.285 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.285 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.285 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.285 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.285 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.295 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.295 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.295 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.295 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.295 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.295 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.305 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.315 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.315 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.315 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.315 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.315 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.325 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.325 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.325 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.325 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.325 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.325 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.335 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.335 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.335 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.335 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.335 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.345 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.345 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.345 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.345 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.345 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.355 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.355 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.355 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.355 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.365 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.365 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.365 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.365 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.365 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.365 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.375 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.375 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.375 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.375 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.375 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.385 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.385 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.385 29606-29606/com.ruiyin.merchant D/TextView: setTypeface with style : 0
09-05 14:21:57.415 29606-29606/com.ruiyin.merchant D/ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 96 - 0, 0) vi=Rect(0, 96 - 0, 0) or=1
09-05 14:21:57.475 29606-29606/com.ruiyin.merchant I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@f2f39e8 time:146202221
09-05 14:22:03.375 29606-29606/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onPaused <<<
09-05 14:22:06.665 29606-29606/com.ruiyin.merchant D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
09-05 14:22:06.675 29606-29606/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onResumed <<<
09-05 14:22:06.745 29606-29606/com.ruiyin.merchant I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@f2f39e8 time:146211492
09-05 14:22:08.535 29606-29606/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onPaused <<<
09-05 14:22:10.505 29606-29606/com.ruiyin.merchant D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
09-05 14:22:10.515 29606-29606/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onResumed <<<
09-05 14:22:10.605 29606-29606/com.ruiyin.merchant I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@f2f39e8 time:146215357
09-05 14:22:11.045 29606-29606/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onPaused <<<
09-05 14:22:12.805 29606-29606/com.ruiyin.merchant D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
09-05 14:22:12.815 29606-29606/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onResumed <<<
09-05 14:22:12.885 29606-29606/com.ruiyin.merchant I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@f2f39e8 time:146217636
09-05 14:22:13.495 29606-29606/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onPaused <<<
09-05 14:22:15.535 29606-29606/com.ruiyin.merchant D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
09-05 14:22:15.545 29606-29606/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onResumed <<<
09-05 14:22:15.645 29606-29606/com.ruiyin.merchant I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@f2f39e8 time:146220390
09-05 14:22:18.955 29606-29606/com.ruiyin.merchant D/ViewRootImpl: ViewPostImeInputStage processPointer 0
09-05 14:22:18.965 29606-29606/com.ruiyin.merchant D/ViewRootImpl: ViewPostImeInputStage processPointer 1
09-05 14:22:18.995 29606-29723/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:12832
09-05 14:22:18.995 29606-29723/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Action - sendCommand
09-05 14:22:18.995 29606-29723/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:cn.jmessage.biz.j.a@6011067
09-05 14:22:18.995 29606-29723/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
09-05 14:22:19.035 29606-29617/com.ruiyin.merchant D/JIGUANG-JMessage: [b] processIMData type : im_response
09-05 14:22:19.035 29606-29617/com.ruiyin.merchant D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:57
09-05 14:22:19.055 29606-29723/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:12832
09-05 14:22:19.055 29606-29723/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Action - sendCommand
09-05 14:22:19.055 29606-29606/com.ruiyin.merchant I/JIGUANG-JMessage: [RequestProcessor] SyncCheck stopped
09-05 14:22:19.055 29606-29723/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:cn.jmessage.biz.j.a@64f7780
09-05 14:22:19.055 29606-29723/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
09-05 14:22:19.055 29606-29723/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:12832
09-05 14:22:19.055 29606-29723/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Action - sendCommand
09-05 14:22:19.055 29606-29617/com.ruiyin.merchant I/JIGUANG-JMessage: [RequestProcessor] SyncCheck stopped
09-05 14:22:19.065 29606-29617/com.ruiyin.merchant W/JIGUANG-JMessage: [ImBaseRequest] response code is handled,return from parse response.
09-05 14:22:19.065 29606-29606/com.ruiyin.merchant E/JIGUANG-JMessage: [CommonUtils] [logout] have not logged in!
09-05 14:22:19.075 29606-29723/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:cn.jmessage.biz.j.a@75719fe
09-05 14:22:19.075 29606-29723/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
09-05 14:22:19.175 29606-29606/com.ruiyin.merchant D/ViewRootImpl: MSG_RESIZED: ci=Rect(0, 96 - 0, 1114) vi=Rect(0, 96 - 0, 1114) or=1
09-05 14:22:19.215 29606-29606/com.ruiyin.merchant E/JIGUANG-JMessage: [CommonUtils] [getFromUser] have not logged in!
09-05 14:22:19.215 29606-29606/com.ruiyin.merchant E/JIGUANG-JMessage: [CommonUtils] [getMyInfo] have not logged in!
09-05 14:22:19.215 29606-29606/com.ruiyin.merchant E/JIGUANG-JMessage: [CommonUtils] [getFromUser] have not logged in!
09-05 14:22:19.215 29606-29606/com.ruiyin.merchant E/JIGUANG-JMessage: [CommonUtils] [getFromUser] have not logged in!
09-05 14:22:19.345 29606-29618/com.ruiyin.merchant D/JIGUANG-JMessage: [b] processIMData type : im_response
09-05 14:22:19.345 29606-29618/com.ruiyin.merchant E/JIGUANG-JMessage: [IMServiceHelper] IM logout failed
09-05 14:22:19.345 29606-29618/com.ruiyin.merchant D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:2
09-05 14:22:19.345 29606-29618/com.ruiyin.merchant E/JIGUANG-JMessage: [CommonUtils] [handleIMResponse] have not logged in!
09-05 14:22:19.395 29606-29750/com.ruiyin.merchant D/JIGUANG-JMessage: [b] processIMData type : im_response
09-05 14:22:19.395 29606-29750/com.ruiyin.merchant E/JIGUANG-JMessage: [IMServiceHelper] IM logout failed
09-05 14:22:19.405 29606-29750/com.ruiyin.merchant D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:2
09-05 14:22:19.405 29606-29750/com.ruiyin.merchant E/JIGUANG-JMessage: [CommonUtils] [handleIMResponse] have not logged in!
09-05 14:22:22.555 29606-29606/com.ruiyin.merchant D/ViewRootImpl: ViewPostImeInputStage processPointer 0
09-05 14:22:22.605 29606-29606/com.ruiyin.merchant D/ViewRootImpl: ViewPostImeInputStage processPointer 1
09-05 14:22:22.615 29606-29606/com.ruiyin.merchant D/merchant_client: ╔════════════════════════════════════════════════════════════════════════════════════════
09-05 14:22:22.615 29606-29606/com.ruiyin.merchant D/merchant_client: ║ Thread: main
09-05 14:22:22.615 29606-29606/com.ruiyin.merchant D/merchant_client: ╟────────────────────────────────────────────────────────────────────────────────────────
09-05 14:22:22.615 29606-29606/com.ruiyin.merchant D/merchant_client: ║ ChatActivity$8.sendContent  (ChatActivity.java:507)
09-05 14:22:22.615 29606-29606/com.ruiyin.merchant D/merchant_client: ║    LogUtils.d  (LogUtils.java:28)
09-05 14:22:22.615 29606-29606/com.ruiyin.merchant D/merchant_client: ╟────────────────────────────────────────────────────────────────────────────────────────
09-05 14:22:22.615 29606-29606/com.ruiyin.merchant D/merchant_client: ║ create send message conversation = Conversation{type=single, targetId='11111140626', latestText='恶魔', latestType=text, lastMsgDate=1567664456708, unReadMsgCnt=0, msgTableName='msg100627432', targetAppkey='d1ad6fcb29f686c680980518', extra='2'}==content==cn.jpush.im.android.api.content.TextContent@3d25e62
09-05 14:22:22.615 29606-29606/com.ruiyin.merchant D/merchant_client: ╚════════════════════════════════════════════════════════════════════════════════════════
09-05 14:22:22.615 29606-29606/com.ruiyin.merchant E/JIGUANG-JMessage: [CommonUtils] [createSendMessage] have not logged in!
09-05 14:22:22.615 29606-29606/com.ruiyin.merchant E/JIGUANG-JMessage: [JMessageClient] [sendMessage] message should not be null

你的日志里面没有看到你有 登陆成功过一次呀,都是在未登录的时候做了别的操作所以在报 没有登录的错误

日志开关是打开了的,手机没有logjmessage.txt文件。

刚又出现了:频繁切换前后台,发现收到:user_login_status_unexpected
日志是:

09-05 14:45:12.495 328-328/com.ruiyin.merchant D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
09-05 14:45:12.505 328-328/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onResumed <<<
09-05 14:45:12.585 328-328/com.ruiyin.merchant I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@e6e1ae1 time:147597333
09-05 14:45:13.075 328-328/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onPaused <<<
09-05 14:45:14.675 328-328/com.ruiyin.merchant D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
09-05 14:45:14.685 328-328/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onResumed <<<
09-05 14:45:14.765 328-328/com.ruiyin.merchant I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@e6e1ae1 time:147599513
09-05 14:45:15.155 328-328/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onPaused <<<
09-05 14:45:16.675 328-328/com.ruiyin.merchant D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
09-05 14:45:16.675 328-328/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onResumed <<<
09-05 14:45:16.755 328-328/com.ruiyin.merchant I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@e6e1ae1 time:147601506
09-05 14:45:17.235 328-328/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onPaused <<<
09-05 14:45:19.415 328-328/com.ruiyin.merchant D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
09-05 14:45:19.415 328-328/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onResumed <<<
09-05 14:45:19.495 328-328/com.ruiyin.merchant I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@e6e1ae1 time:147604247
09-05 14:45:19.965 328-328/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onPaused <<<
09-05 14:45:22.285 328-328/com.ruiyin.merchant D/JIGUANG-JCore: [JCoreHelper] runActionWithService action:notification_state
09-05 14:45:22.295 328-328/com.ruiyin.merchant D/CrashReport: >>> jiguang.chat.activity.ChatActivity onResumed <<<
09-05 14:45:22.365 328-328/com.ruiyin.merchant I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@e6e1ae1 time:147607118
09-05 14:45:23.885 328-328/com.ruiyin.merchant D/ViewRootImpl: ViewPostImeInputStage processPointer 0
09-05 14:45:23.905 328-328/com.ruiyin.merchant D/ViewRootImpl: ViewPostImeInputStage processPointer 1
09-05 14:45:23.935 328-459/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:13033
09-05 14:45:23.935 328-459/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Action - sendCommand
09-05 14:45:23.935 328-459/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:cn.jmessage.biz.j.a@137500c
09-05 14:45:23.935 328-459/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
09-05 14:45:24.095 328-348/com.ruiyin.merchant D/JIGUANG-JMessage: [b] processIMData type : im_response
09-05 14:45:24.095 328-348/com.ruiyin.merchant D/JIGUANG-JMessage: [ResponseProcessor] IMCMD:57
09-05 14:45:24.105 328-459/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:13033
09-05 14:45:24.105 328-459/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Action - sendCommand
09-05 14:45:24.105 328-328/com.ruiyin.merchant D/merchant_client: ╔════════════════════════════════════════════════════════════════════════════════════════
09-05 14:45:24.105 328-328/com.ruiyin.merchant D/merchant_client: ║ Thread: main
09-05 14:45:24.105 328-328/com.ruiyin.merchant D/merchant_client: ╟────────────────────────────────────────────────────────────────────────────────────────
09-05 14:45:24.105 328-328/com.ruiyin.merchant D/merchant_client: ║ Method.invoke  (Method.java:-2)
09-05 14:45:24.105 328-328/com.ruiyin.merchant D/merchant_client: ║    BaseActivity.onEventMainThread  (BaseActivity.java:119)
09-05 14:45:24.105 328-328/com.ruiyin.merchant D/merchant_client: ╟────────────────────────────────────────────────────────────────────────────────────────
09-05 14:45:24.105 328-328/com.ruiyin.merchant D/merchant_client: ║ 获取到登录状态改变:user_login_status_unexpected
09-05 14:45:24.105 328-328/com.ruiyin.merchant D/merchant_client: ╚════════════════════════════════════════════════════════════════════════════════════════
09-05 14:45:24.105 328-328/com.ruiyin.merchant D/CrashReport: [AsyncTaskHandler] Post a normal task: com.tencent.bugly.crashreport.crash.c$1
09-05 14:45:24.105 328-385/com.ruiyin.merchant D/CrashReport: post a throwable false
09-05 14:45:24.105 328-385/com.ruiyin.merchant E/CrashReport: Java Catch Happen
09-05 14:45:24.105 328-459/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:cn.jmessage.biz.j.a@1e809d1
09-05 14:45:24.115 328-459/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
09-05 14:45:24.115 328-459/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Action - sendRequestInternal - connection:, timeout:60000, threadId:13033
09-05 14:45:24.115 328-459/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Action - sendCommand
09-05 14:45:24.115 328-459/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] request is [Requesting] - timeout:50000, times:1, request:cn.jmessage.biz.j.a@a31d737
09-05 14:45:24.115 328-459/com.ruiyin.merchant D/JIGUANG-JMessage: [RequestingThread] Request params - cmd:100
09-05 14:45:24.125 328-328/com.ruiyin.merchant I/JIGUANG-JMessage: [RequestProcessor] SyncCheck stopped
09-05 14:45:24.125 328-348/com.ruiyin.merchant I/JIGUANG-JMessage: [RequestProcessor] SyncCheck stopped
09-05 14:45:24.125 328-385/com.ruiyin.merchant W/CrashReport: no read_log permission!
09-05 14:45:24.125 328-385/com.ruiyin.merchant I/CrashReport: user log size:0
09-05 14:45:24.135 328-385/com.ruiyin.merchant E/CrashReport: stack frame :11, has cause false
09-05 14:45:24.145 328-328/com.ruiyin.merchant D/merchant_client: ╔════════════════════════════════════════════════════════════════════════════════════════
09-05 14:45:24.145 328-328/com.ruiyin.merchant D/merchant_client: ║ Thread: main
09-05 14:45:24.145 328-328/com.ruiyin.merchant D/merchant_client: ╟────────────────────────────────────────────────────────────────────────────────────────
09-05 14:45:24.145 328-328/com.ruiyin.merchant D/merchant_client: ║ Method.invoke  (Method.java:-2)
09-05 14:45:24.145 328-328/com.ruiyin.merchant D/merchant_client: ║    BaseActivity.onEventMainThread  (BaseActivity.java:119)
09-05 14:45:24.145 328-328/com.ruiyin.merchant D/merchant_client: ╟────────────────────────────────────────────────────────────────────────────────────────
09-05 14:45:24.145 328-328/com.ruiyin.merchant D/merchant_client: ║ 获取到登录状态改变:user_login_status_unexpected
09-05 14:45:24.145 328-328/com.ruiyin.merchant D/merchant_client: ╚════════════════════════════════════════════════════════════════════════════════════════
09-05 14:45:24.145 328-348/com.ruiyin.merchant W/JIGUANG-JMessage: [ImBaseRequest] response code is handled,return from parse response.
09-05 14:45:24.145 328-328/com.ruiyin.merchant D/CrashReport: [AsyncTaskHandler] Post a normal task: com.tencent.bugly.crashreport.crash.c$1
09-05 14:45:24.145 328-328/com.ruiyin.merchant E/JIGUANG-JMessage: [CommonUtils] [logout] have not logged in!

都能拿到聊天记录,怎么可以是没有登录呢

稍等,我反馈一下看看

完整日志:logmessage.txt (2.4 MB)

我现在项目场景是这样的,想集成极光IM做个一个客服功能,出现这个问是同一个手机安装了用户APP和客服APP, 两个应用频繁切换后,只有其中一个app能发消息,另一个发消息的时候就出现: [CommonUtils] [createSendMessage] have not logged in!

你这两个 App 配的 Appkey 一样吗?登陆的账号一样吗?

Appkey是一样的,登录账号不一样。

经过确认:两个不同的app需要使用不同的appkey,如果app1使用appkey1,app2也使用appkey1,在同一个手机设备上运行的话,后登录的app2会对app1的登录状态造成影响,因为IM后台是根据appkey和设备信息来绑定一个设备上的用户登录状态的,此时app1再发送请求,后台会下发设备不匹配的错误码,SDK这边app1会执行登出操作

那不同的appkey的两个APP,之间还能互相通信吗?

可以,用跨应用通讯
https://docs.jiguang.cn/jmessage/client/android_sdk/app_crossing/

好的,非常谢谢