vendredi 10 août 2018

Issue in openng app from link in website

App should be opened when link is pressed if present.and if not available it should redirect to other link. Lets come to issue from browser it is not redirecting ,it always showing app is not installed.

this is my html code:

<html>  
<head>  
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">  
<title>Insert title here</title>  
<script type="text/javascript">
function test2(){
var di = document.getElementById("di");
di.innerHTML = "app have not installed";
}
function newOpen(){
var di = document.getElementById("di");
di.innerHTML = "app have installed";
var ifc = document.getElementById("ifc");
ifc.innerHTML = "<iframe src='http://m.xyz.com' onload='test2()'> 
</iframe>";
return false;
}
</script>
</head>  
<body>  
<a href="#" onclick="return newOpen()">local3</a><br/> 
<div id="di"></div> 
<div style="display:none;" id="ifc"></div>
</body>  
</html>

here is code in android:

<intent-filter>
            <data android:scheme="http"
                android:host="m.xyz.com" />
            <category android:name="android.intent.category.LAUNCHER" />
            <action android:name="android.intent.action.VIEW"></action>
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
</intent-filter>

URL in mobile is like :m.xyz.com/Msignin source is not available much and i followed link Appreciate for help thank you.




Aucun commentaire:

Enregistrer un commentaire