若有安APP, 自(使用 URL Schema), 若, 是否到商店行下。
原理:用器下html, 利用javascript判。?
??
<html>
<head>
<title>判是否有安APP,若,是否下</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="images/css.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
var isiPad = navigator.userAgent.match(/iPad/i) != null;
var isiPhone = navigator.userAgent.match(/iPhone/i) != null;
var isandroid = navigator.userAgent.match(/Android/i) != null;
if(isandroid)
{
'https://play.google.com/store/apps/details?id=com.fonestock.android.yourapp';
}
if(isiPad)
{
'yourappurls://';
setTimeout( function() {
if( confirm( '您似乎有安, APP, 行下?')) {
document.location = 'http://itunes.apple.com/tw/app/id4179293XX';
if(isiPhone)
'yourappurls://';
function() {
if( confirm( '您似乎有安, APP, 行下?')) {
'http://itunes.apple.com/tw/app/id4179293XX';
}
</script>
?
</head>
<body>
</body>
</html>