Se si dispone di una pagina web si collega a dall'e-mail con la pagina web contenente un iframe
con il src
impostato lo schema personalizzato per la tua App, iOS reindirizzerà automaticamente a quella posizione in App. Se l'app non è installata, non accadrà nulla. Ciò ti consente di collegarti in profondità all'App se è installato, o di reindirizzare all'App Store se non è installato.
Ad esempio, se è stata installata l'app di Twitter e si passa a una pagina Web contenente il seguente codice, verrebbe immediatamente indirizzato all'app. Se non hai installato l'app di Twitter, visualizzerai il testo "L'app di Twitter non è installata".
<!DOCTYPE html>
<html>
<head>
<title>iOS Automatic Deep Linking</title>
</head>
<body>
<iframe src="twitter://" width="0" height="0"></iframe>
<p>The Twitter App is not installed</p>
</body>
</html>
Ecco un esempio più completo che reindirizza al App Store se l'App non è installato:
<!DOCTYPE html>
<html>
<head>
<title>iOS Automatic Deep Linking</title>
<script src='//code.jquery.com/jquery-1.11.2.min.js'></script>
<script src='//mobileesp.googlecode.com/svn/JavaScript/mdetect.js'></script>
<script>
(function ($, MobileEsp) {
// On document ready, redirect to the App on the App store.
$(function() {
if (typeof MobileEsp.DetectIos !== 'undefined' && MobileEsp.DetectIos()) {
// Add an iframe to twitter://, and then an iframe for the app store
// link. If the first fails to redirect to the Twitter app, the
// second will redirect to the app on the App Store. We use jQuery
// to add this after the document is fully loaded, so if the user
// comes back to the browser, they see the content they expect.
$('body').append('<iframe class="twitter-detect" src="twitter://" />')
.append('<iframe class="twitter-detect" src="itms-apps://itunes.com/apps/twitter" />');
}
});
})(jQuery, MobileEsp);
</script>
<style type="text/css">
.twitter-detect {
display: none;
}
</style>
</head>
<body>
<p>Website content.</p>
</body>
</html>
credo che la soluzione ideale sarebbe dire che si potrebbe reindirizzare a un link iTunes con un'istruzione . Qualcosa come: https://itunes.apple.com/us/app/clear/id492134154?mt=8&uo=4&open=true dove open = true dice all'app store ios di aprire l'app ... – ConfusedNoob