我这边安卓手机今天都有这样的问题,难受,也没找到解决方案
企业微信H5页面在华为p40 pro上二次唤起微信扫码时闪退在企业微信中打开h5的页面,之后第一次调用wx.scanQRCode时没有问题,但是如果不退出页面,第二次直接调用wx.scanQRCode时,根据adb日志,会报错Application attempted to call on a destroyed WebView 然后导致h5直接整个崩溃关闭掉 业务代码是使用react进行开发的,adb日志和手机型号见下 [图片] 06-03 18:33:22.937 1725 2948 E WifiPermissionsUtil: getUidPermission is DENIED and permissionType android.permission.ACCESS_COARSE_LOCATIONuid 10176 06-03 18:33:22.937 1725 2948 E WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10176 has no location permission 06-03 18:33:22.939 1725 1980 W AwareLog: AwareMem_MemoryUtils: invalid swappiness value 06-03 18:33:22.943 9222 24971 E libc : Access denied finding property "ro.kirin.product.platform" 06-03 18:33:22.943 9222 24971 W HwExtendedCodec: The mime is not in hisi extended mime. 06-03 18:33:22.938 9222 9222 W SoundPoolThread: type=1400 audit(0.0:315476): avc: denied { read } for pid=9222 name="u:object_r:product_platform_prop:s0" dev="tmpfs" ino=17614 scontext=u:r:untrusted_app_27:s0:c176,c256,c512,c768 tcontext=u:object_r:product_platform_prop:s0 tclass=file permissive=0 06-03 18:33:22.947 9222 24972 W Codec2Client: query -- param skipped: index = 1107298332. 06-03 18:33:22.947 9222 24972 W Codec2Client: query -- param skipped: index = 1342179345. 06-03 18:33:22.947 9222 24972 W Codec2Client: query -- param skipped: index = 2415921170. 06-03 18:33:23.114 1725 2948 E WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10176 has no location permission 06-03 18:33:23.132 1725 2065 W AudioSystem: (gLock) AudioSystem start get_audio_flinger() 06-03 18:33:23.132 1725 2065 W AudioSystem: (gLock) AudioSystem end get_audio_flinger()ms: 0ms 06-03 18:33:23.114 1725 2948 E WifiPermissionsUtil: getUidPermission is DENIED and permissionType android.permission.ACCESS_COARSE_LOCATIONuid 10176 06-03 18:33:23.246 54 54 W migration/7: type=1400 audit(0.0:315478): avc: granted { setsched } for pid=54 scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=process 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: Application attempted to call on a destroyed WebView 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: java.lang.Throwable 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at org.chromium.android_webview.AwContents.U(chromium-SystemWebView.apk-stable-410310603:2) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at org.chromium.android_webview.AwContents.p(chromium-SystemWebView.apk-stable-410310603:1) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at com.android.webview.chromium.WebViewChromium.evaluateJavaScript(chromium-SystemWebView.apk-stable-410310603:8) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at android.webkit.WebView.evaluateJavascript(WebView.java:911) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at java.lang.reflect.Method.invoke(Native Method) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at com.tencent.smtt.sdk.WebView.evaluateJavascript(Unknown Source:95) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at eng.a(JsCoreUtil.java:28) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at com.tencent.wework.common.web.jsapi.bridge.JsApiHandler$10.run(JsApiHandler.java:682) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at efs.runOnMainThread(ThreadUtils.java:69) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at com.tencent.wework.common.web.jsapi.bridge.JsApiHandler.doCallback(JsApiHandler.java:677) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at com.tencent.wework.common.web.jsapi.bridge.JsApiHandler.notifyJsMessageHandled(JsApiHandler.java:594) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at eoe.notifyCancel(I3rdJsInterface.java:38) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at euv$1.c(JSFuncScanQRCode.java:63) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at euv$2.onCancel(JSFuncScanQRCode.java:159) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at com.tencent.wework.login.controller.QRScannerActivity.onDestroy(QRScannerActivity.java:329) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at android.app.Activity.performDestroy(Activity.java:8385) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1355) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:5675) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:5720) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:44) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:190) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:105) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2458) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at android.os.Handler.dispatchMessage(Handler.java:110) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at android.os.Looper.loop(Looper.java:219) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at android.app.ActivityThread.main(ActivityThread.java:8387) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at java.lang.reflect.Method.invoke(Native Method) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) 06-03 18:33:23.255 9222 9222 W hwbr_engine_AwContents: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055) 06-03 18:33:23.261 773 1750 W BufferQueueProducer: [com.tencent.wework/com.tencent.wework.login.controller.QRScannerActivity#0]:1403: disconnect: not connected (req=1) 06-03 18:33:23.261 9222 14366 W libEGL : EGLNativeWindowType 0xb203eb08 disconnect failed 06-03 18:33:23.266 9222 9222 E RtgSchedManager: endActivityTransaction: margin state not match 06-03 18:33:23.345 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.346 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.347 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.354 54 54 W migration/7: type=1400 audit(0.0:315479): avc: granted { setsched } for pid=54 scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=process 06-03 18:33:23.466 48 48 W migration/6: type=1400 audit(0.0:315480): avc: granted { setsched } for pid=48 scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=process 06-03 18:33:23.863 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.960 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.961 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.961 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.961 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.962 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.962 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.963 9222 9222 E .tencent.wewor: No package ID ff found for ID 0xffffffff. 06-03 18:33:23.967 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.968 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.971 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.972 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.973 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.974 9222 9222 E .tencent.wewor: Invalid ID 0x00000000. 06-03 18:33:23.986 48 48 W migration/6: type=1400 audit(0.0:315481): avc: granted { setsched } for pid=48 scontext=u:r:kernel:s0 tcontext=u:r:kernel:s0 tclass=process 06-03 18:33:24.099 9222 14290 W System : A resource failed to call end. 06-03 18:33:24.100 9222 14290 W System : A resource failed to call end. 06-03 18:33:24.179 5136 5136 W ContentSensor_AudioInfoTask: No need notify 06-03 18:33:24.180 5136 5136 W ContentSensor_AudioInfoTask: insert music info is empty 06-03 18:33:24.180 5136 5136 W ContentSensor_AudioInfoTask: insert music info is empty 06-03 18:33:24.428 2750 3139 E NetworkQoeChr: startTcpStackInfoStaticForChr failed, dnsInfoOpt is null 06-03 18:33:24.837 1076 4330 E Thermal-daemon:ambient: AmbientSample: write temp 29643 to ambient node
2021-06-05我也遇到了同样的问题,大家可以参考我的这篇博客解决此问题 https://juejin.cn/post/6969876122871791623
H5微信授权登录后左滑或者右滑会回退到微信重定向页面 循环登录无法退出?重定向至微信授权链接,无法在页面栈中去除微信授权的历史记录,入口页通过左滑或者右滑上一页会重新进入微信授权登录, 然后无限循环, 期望是直接退出h5, 通过左上角的关闭icon则可以关闭 var url = "".concat("https://open.weixin.qq.com/connect/oauth2/authorize?", "appid=") .concat(appid, "&redirect_uri=") .concat(encodeURIComponent(e), "&") .concat("response_type=code", "&") .concat("scope=snsapi_userinfo&state=wx#wechat_redirect"); window.location.href = url [视频] 链接:http://yx.file.dtbird.cn/yingxiao-miniSite-dev/wx501021189112594432.html?userId=353&siteId=1911
2021-06-05