Javascript 从浏览器(chrome)启动已安装应用程序的深度链接在android设备上已不再有效
第二次显示空白页。如果我清除chrome应用程序的缓存数据,它会再次打开已安装的应用程序,再次打开相同的空白页。 这是我的java脚本代码Javascript 从浏览器(chrome)启动已安装应用程序的深度链接在android设备上已不再有效,javascript,android,android-intent,intentfilter,deep-linking,Javascript,Android,Android Intent,Intentfilter,Deep Linking,第二次显示空白页。如果我清除chrome应用程序的缓存数据,它会再次打开已安装的应用程序,再次打开相同的空白页。 这是我的java脚本代码 请帮助任何人。提前谢谢你 In my case it opens the installed android app first time on chrome, mobiledeplink.js var wUrl=''; 函数LaunchApp(){ wUrl=”gpscheme://gpandroid/signup?id=“XXx”; 窗口打开(wUrl
请帮助任何人。提前谢谢你
In my case it opens the installed android app first time on chrome,
mobiledeplink.js
var wUrl='';
函数LaunchApp(){
wUrl=”gpscheme://gpandroid/signup?id=“XXx”;
窗口打开(wUrl);
}
函数mobiledeplink()
{
启动app();
}
下面是我的html代码
页面标题
在我的android清单文件中
mobileDeepLink.js
var wUrl='';
function LaunchApp(){
wUrl="gpscheme://gpandroid/signup?id="XXx";
window.open(wUrl);
}
function mobileDeepLink()
{
LaunchApp();
}
the following is my html code
<head>
<meta charset="utf-8" />
<link rel="alternate" href="android-app://com.example/gpscheme/gpandroid" />
<title>Page Title</title>
</head>
<body onload="mobileDeepLink()">
<script src="http://192.168.0.113:3000/GPWeb/gpjs/mobileDeepLink.js"> </script>
</body>
</html>
and in my android manifest file
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="gpandroid"
android:scheme="gpscheme"
/>
</intent-filter>