RxReader / tencent_kit

Flutter版QQ登录/分享
MIT License
235 stars 63 forks source link

无法获取用户信息 #48

Closed DongHa0 closed 3 years ago

DongHa0 commented 3 years ago

机型: 华为mate30 V/AudioManager(31688): querySoundEffectsEnabled... I/openSDK_LOG.Tencent(31688): login() with activity, scope is get_simple_userinfo I/openSDK_LOG.QQAuth(31688): login() I/openSDK_LOG.QQAuth(31688): -->login activity: com.demo.qqlogin.MainActivity@9eb9d1d I/openSDK_LOG.SystemUtils(31688): apkPath=/data/app/com.demo.qqlogin-OkYF9DFpNeqSJraPKQwesg==/base.apk I/openSDK_LOG.AuthAgent(31688): startActionActivity() -- start I/openSDK_LOG.AuthAgent(31688): startActionActivity() -- end, found activity for loginIntent I/openSDK_LOG.AuthAgent(31688): OpenUi, showUi, return Constants.UI_ACTIVITY E/openSDK_LOG.Util(31688): getPackageInfo has exception: com.qzone W/ActivityThread(31688): handleWindowVisibility: no activity for token android.os.BinderProxy@d12fdaf V/ActivityThread(31688): callActivityOnCreate I/openSDK_LOG.AssistActivity(31688): --onCreate-- mRestoreLandscape=false I/openSDK_LOG.AssistActivity(31688): --onCreate--activityIntent not null, will start activity, reqcode = 11101 I/openSDK_LOG.AssistActivity(31688): registerReceiver exception : Attempt to invoke virtual method 'java.lang.String android.net.Uri.getQueryParameter(java.lang.String)' on a null object reference E/openSDK_LOG(31688): -->obtainFileWriter() old log file permission denied I/DecorView: old windowMode:0 new windoMode:1 D/ActivityThread(31688): add activity client record, r= ActivityRecord{ebb85bc token=android.os.BinderProxy@d12fdaf {com.demo.qqlogin/com.tencent.connect.common.AssistActivity}} token= android.os.BinderProxy@d12fdaf I/openSDK_LOG.AssistActivity(31688): -->onStart I/openSDK_LOG.AssistActivity(31688): -->onResume I/DecorView: old windowMode:1 new windoMode:1 D/InputEventReceiver(31688): dispatchInputInterval 1000000 D/DecorView(31688): showOrHideHighlightView: hasFocus=false; winMode=1; isMrgNull=true I/openSDK_LOG.AssistActivity(31688): -->onPause D/OpenGLRenderer(31688): disableOutlineDraw is true D/HiTouch_PressGestureDetector(31688): onAttached, package=com.demo.qqlogin, windowType=1, mHiTouchRestricted=false D/mali_winsys(31688): EGLint new_window_surface(egl_winsys_display , void , EGLSurface, EGLConfig, egl_winsys_surface , EGLBoolean) returns 0x3000 D/DecorView(31688): showOrHideHighlightView: hasFocus=true; winMode=1; isMrgNull=true W/InputMethodManager(31688): startInputReason = 1 D/DecorView(31688): showOrHideHighlightView: hasFocus=false; winMode=1; isMrgNull=true D/RtgSched(31688): resetRtgSchedHandle failed enable:0 D/ZrHung.AppEyeUiProbe(31688): not watching, wait. W/libEGL (31688): EGLNativeWindowType 0x777842a390 disconnect failed W/libEGL (31688): EGLNativeWindowType 0x7774623010 disconnect failed W/libEGL (31688): EGLNativeWindowType 0x7784ef3fd0 disconnect failed I/openSDK_LOG.AssistActivity(31688): -->onStop I/openSDK_LOG.AssistActivity(31688): --onSaveInstanceState-- I/openSDK_LOG.AssistActivity(31688): -->onStart I/ActivityThread(31688): Handle window ActivityRecord{ebb85bc token=android.os.BinderProxy@d12fdaf {com.demo.qqlogin/com.tencent.connect.common.AssistActivity}} visibility: true I/ActivityThread(31688): Handle window ActivityRecord{ffb47cb token=android.os.BinderProxy@265cd73 {com.demo.qqlogin/com.demo.qqlogin.MainActivity}} visibility: true D/mali_winsys(31688): EGLint new_window_surface(egl_winsys_display , void , EGLSurface, EGLConfig, egl_winsys_surface , EGLBoolean) returns 0x3000 D/mali_winsys(31688): EGLint new_window_surface(egl_winsys_display , void , EGLSurface, EGLConfig, egl_winsys_surface , EGLBoolean) returns 0x3000 D/mali_winsys(31688): EGLint new_window_surface(egl_winsys_display , void , EGLSurface, EGLConfig, egl_winsys_surface , EGLBoolean) returns 0x3000 I/HwViewRootImpl(31688): removeInvalidNode all the node in jank list is out of time D/ActivityThread(31688): Won't deliver top position change in state=2 I/openSDK_LOG.AssistActivity(31688): --onActivityResult--requestCode: 11101 | resultCode: -1data = null ? false I/openSDK_LOG.AssistActivity(31688): --setResultData--openid and token not empty, setResult ACTIVITY_OK I/openSDK_LOG.AssistActivity(31688): onActivityResult finish immediate E/openSDK_LOG.Util(31688): getPackageInfo has exception: com.qzone E/openSDK_LOG(31688): -->obtainFileWriter() old log file permission denied D/ZrHung.AppEyeUiProbe(31688): restart watching D/DecorView(31688): showOrHideHighlightView: hasFocus=true; winMode=1; isMrgNull=true W/InputMethodManager(31688): startInputReason = 1 D/ActivityThread(31688): Won't deliver top position change in state=2 D/ActivityThread(31688): Won't deliver top position change in state=2 I/openSDK_LOG.Tencent(31688): onActivityResultData() reqcode = 11101, resultcode = -1, data = null ? false, listener = null ? false I/openSDK_LOG.UIListenerManager(31688): onActivityResult req=11101 res=-1 W/openSDK_LOG.AuthAgent(31688): FeedConfirmListener onComplete There is no value for sendinstall. I/openSDK_LOG.AuthAgent(31688): WORDING = xx,showConfirmDialog=false I/AndroidSecurityKeyStore(31688): keystore characteristics promise future onFinished. I/AndroidSecurityKeyStore(31688): keystore export key promise future onFinished. I/AndroidSecurityKeyStore(31688): keystore characteristics promise future onFinished. I/AndroidSecurityKeyStore(31688): keystore operation promise future onFinished. I/AndroidSecurityKeyStore(31688): keystore operation promise future onFinished. I/AndroidSecurityKeyStore(31688): keystore operation promise future onFinished. I/QQToken (31688): saveJsonPreference sucess I/openSDK_LOG.AuthAgent(31688): saveSession saveSuccess=true D/DecorView(31688): showOrHideHighlightView: hasFocus=true; winMode=1; isMrgNull=true W/InputMethodManager(31688): startInputReason = 1 D/DecorView(31688): showOrHideHighlightView: hasFocus=false; winMode=1; isMrgNull=true W/libEGL (31688): EGLNativeWindowType 0x7784ef3fd0 disconnect failed I/openSDK_LOG.AssistActivity(31688): -->onStop I/openSDK_LOG.AssistActivity(31688): -->onDestroy D/ActivityThread(31688): Remove activity client record, r= ActivityRecord{ebb85bc token=android.os.BinderProxy@d12fdaf {com.demo.qqlogin/com.tencent.connect.common.AssistActivity}} token= android.os.BinderProxy@d12fdaf I/ViewRootImpl(31688): dispatchDetachedFromWindow in doDie E/openSDK_LOG(31688): -->obtainFileWriter() old log file permission denied I/openSDK_LOG.HttpUtils(31688): -->openUrl2 response cdoe =200

droplet-js commented 3 years ago

Tencent #getUserInfo

DongHa0 commented 3 years ago

Tencent #getUserInfo

??? 没有accessToken和openId,没办法直接使用getUserInfo吧

droplet-js commented 3 years ago

Tencent #getUserInfo

??? 没有accessToken和openId,没办法直接使用getUserInfo吧

请认真阅读 example/main.dart

DongHa0 commented 3 years ago

Tencent #getUserInfo

??? 没有accessToken和openId,没办法直接使用getUserInfo吧

请认真阅读 example/main.dart

我运行example也是同样的情况啊,登录可以拉起QQ,点击获取用户信息就没有反应了