Skip to content

Instantly share code, notes, and snippets.

@melvynhills
Created February 28, 2013 15:45
Show Gist options
  • Save melvynhills/5057675 to your computer and use it in GitHub Desktop.
Save melvynhills/5057675 to your computer and use it in GitHub Desktop.
Launch an iOS app if it's installed, or redirect to the App Store.
function openIOSApp() {
window.location = "my-app-scheme://";
setTimeout(function() {
window.location = "itms://itunes.apple.com/us/app/my-app-name/my-app-id";
}, 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment