网页开发“微信开放标签”无法唤醒app
测试微信开放标签功能“ wx-open-launch-app” ,检测到应用但无法正常唤起应用详见截图和视频
截图:
视频:https://test.exexm.com:8060/test-wx-open-tag.mp4
代码:
<wx-open-launch-app
id="launch-btn"
appid="xxx"
extinfo="your-extinfo"
>
<script type="text/wxtag-template">
<style>.btn { padding: 12px }</style>
<button class="btn">App内查看<button>
</script>
</wx-open-launch-app>
<script>
var btn = document.getElementById('launch-btn');
btn.addEventListener('launch', function (e) {
alert("launch-success")
console.log('success');
});
btn.addEventListener('error', function (e) {
alert(JSON.stringify(e.detail))
console.log('fail', e.detail);
});
</script>
1 回复
你好,认真对照文档,对下AndroidManifest.xml里的配置是否对https://developers.weixin.qq.com/doc/oplatform/Mobile_App/Access_Guide/Android.html