0
我正在使用browser-deepling.js進行深度鏈接(https://github.com/hampusohlsson/browser-deeplink/),但android和ios總是打開到應用商店甚至應用程序安裝。Android和ios總是導致打開Play商店(瀏覽器 - 深度鏈接)
<button type="button" class="view"><a href="javascript:void(0)" data-uri="myapp://example.com" onclick="openApp(this.dataset.uri)"> view</a></button>
<script>
deeplink.setup({
iOS: {
appName: "App name",
appId: "app_id",
},
android: {
appId: "app id"
}
});
function openApp(url){
deeplink.open(url);
return false;
}
</script>
在此先感謝。