我想通過下面的javascrip一段代碼實現深層鏈接,但問題是如果我在Android設備上安裝了應用程序,它在應用程序和Playstore網址上打開sametime.Any對此有何建議?深度鏈接開放Android和Playstore網址上安裝的應用程序
<html>
<body>
<button onclick="launchAndroidApp()">Deep linking test</button>
<script>
function launchAndroidApp() {
var test = window.open('DeeplinkingURL', "_self");
setTimeout("window.location = 'Playstoreurl", 1000);
}
</script>
</body>
</html>