safari - Javascript: How to redirect a user to the appstore on iOS 9 -
on ios 8 , earlier, when user clicks "play now" button on our website, loading our game.html file check if user on ios , if forward them appstore:
var isios = ua.indexof("ipad") > -1 || ua.indexof("iphone") > -1 || ua.indexof("ipod") > -1; if (isios) { alert('we forwarding appstore now.'); window.top.location = iosurl; return; }
however not work on ios 9 anymore. noticed redirect work if replace iosurl generic url "http://www.google.de", urls "https://itunes.apple.com" or "itms-apps://itunes.apple.com" not open. reason , how can recreate same behavior on ios 9?
thanks
Comments
Post a Comment