wx-open-launch-app开放标签无法唤起app?
发布于 5 年前 作者 cuixiuying 6097 次浏览 来自 官方Issues
组件名称:wx-open-launch-app

使用方法
<wx-open-launch-app
		id="launch-btn2"
		appid="wx7f6d3c7cf82e3725"
		[@ready](/user/ready)="readyApp"
		[@launch](/user/launch)="startApp"
		[@error](/user/error)="launchError"
>
	<script type="text/wxtag-template">
		<style>.btn123 {
			margin-top: 32px;
			height: 44px;
			width:160px;
			background: #ff4242;
			border-radius: 22px;
			vertical-align: middle;
			font-size: 16px;
			font-weight: 500;
			text-align: center;
			color: #ffffff;
			line-height: 44px;
		}</style>
		<div class="btn123">打开app</div>
	  </script>
</wx-open-launch-app>

   
环境信息:
js版本:https://res.wx.qq.com/open/js/jweixin-1.6.0.js
微信版本:8.0.1840
手机系统:华为p30,安卓10,EMUI:11.0.0
开放平台中待唤起的APPID:wx7f6d3c7cf82e3725 (乡助)
开放平台中已认证的服务号APPID:wx6d7b7d1c5a5739a2 (乡助)
且服务号已获得网页打开app的权限
JS接口安全域名:h5-test.cdfinance.com.cn
移动应用Appid:wx7f6d3c7cf82e3725
移动应用名称:乡助

错误复现步骤:
1、在js安全域下(h5-test.cdfinance.com.cn)的一个网页,获取jsticket并wx.config(未报错)
2、在wx.ready中显示上述组件,并点击《打开app》的按钮
3、页面出现一个黑色加载框,随后消失,后续页面无任何变化

手机adb logcat *:e的日志:
02-04 13:10:38.126  1039  1072 E bastetd : [ProxySocket    ] NotifySocketErrState# No record found by comm prop, state=196619
02-04 13:10:39.517  1627  2380 E ZrHung.AppEyeFocusWindow: NFW check!nstrumentation: Uninitialized ActivityThread, likely app-created Instrumentation, disabling AppComponentFactory
02-04 13:10:39.531 13022 13022 E Instrumentation: java.lang.Throwable
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at android.app.Instrumentation.getFactory(Instrumentation.java:1273)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at android.app.Instrumentation.newActivity(Instrumentation.java:1264)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at com.tencent.mm.splash.k.newActivity(SourceFile:61)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3797)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4077)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:91)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:149)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:103)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2458)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at android.os.Handler.dispatchMessage(Handler.java:110)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at android.os.Looper.loop(Looper.java:219)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at android.app.ActivityThread.main(ActivityThread.java:8387)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at java.lang.reflect.Method.invoke(Native Method)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
02-04 13:10:39.531 13022 13022 E Instrumentation: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1055)
02-04 13:10:39.564  1627  2151 E ZrHung.AppEyeFocusWindow: cancel check
02-04 13:10:39.569  2781  3195 E DollieAdapterService: notifyActivityState pkg:com.tencent.mm/com.tencent.mm.plugin.webview.stub.WebViewStubProxyUI state:2 fg:true mUid:10148
02-04 13:10:39.580  1627  1766 E WindowManager: icon is null!!
02-04 13:10:39.658  1627 12828 E ZrHung.AppEyeFocusWindow: cancel check
02-04 13:10:40.200  1627 12828 E ZrHung.AppEyeFocusWindow: cancel check
02-04 13:10:40.220  1627  1700 E ZrHung.AppEyeFocusWindow: cancel check
icon is null!!
02-04 13:10:39.658  1627 12828 E ZrHung.AppEyeFocusWindow: cancel check
02-04 13:10:40.200  1627 12828 E ZrHung.AppEyeFocusWindow: cancel check
02-04 13:10:40.220  1627  1700 E ZrHung.AppEyeFocusWindow: cancel check

点击按钮,走入launchError错误中,console的日志:
{"type":"error","timeStamp":28456.700000002456,"detail":{},"target":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{}},"currentTarget":{"id":"launch-btn2","offsetLeft":34,"offsetTop":325,"dataset":{}},"touches":[],"changedTouches":[],"mp":{"[@warning](/user/warning)":"mp is deprecated","type":"error","timeStamp":28456.700000002456,"detail":{},"target":{"id":"","offsetLeft":0,"offsetTop":0,"dataset":{}},"currentTarget":{"id":"launch-btn2","offsetLeft":34,"offsetTop":325,"dataset":{}},"touches":[],"changedTouches":[]},"_processed":true}

至此已经无法继续下一步排查了,请求官方团队协助
1 回复

于2021年2月4日,13:21分上传日志

回到顶部