安卓App进程杀掉,微信不能正常唤醒App?
测试微信开放标签功能“ wx-open-launch-app” ,如果App没杀掉进程,微信是可以正常跳转到指定App的,如果App杀掉进程,就不能正常跳转 <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>
[图片][图片][图片]