Skip to content

Instantly share code, notes, and snippets.

@IvanovDeveloper
Created February 13, 2017 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IvanovDeveloper/c8d04fe09f698e158fe4465c3ec102ec to your computer and use it in GitHub Desktop.
Save IvanovDeveloper/c8d04fe09f698e158fe4465c3ec102ec to your computer and use it in GitHub Desktop.
Для того чтобы открыть iOS приложение по ссылке необходимо реализовать скрипт который открывает другую ссылку с которой связано приложение.
<!DOCTYPE html>
<html>
<body>
<script type="text/javascript">
setTimeout(function () {
//This link will be changed later. If application not installed at device, this link for opening the app in appstore.
window.location = "https://itunes.apple.com/us/app/swelp-focus-on-the-core/id1148572155?l=ru&ls=1&mt=8";
}, 25);
//Link for product should be "mainAndMe://products/[current product id]";
//Link for store should be "mainAndMe://stores/[current store id]";
window.location = "mainAndMe://products/636";
</script>
<iframe id="l" width=e"1" height="1" style="visibility:hidden"></iframe>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment