I have a web-page, that will redirect to app if the iPhone does have application installed, but if the iPhone doesnot have the app installed I want it to render the view in browser.Something i have implemented is from this answer
setTimeout(function () { window.location = "https://itunes.apple.com/appdir"; }, 25);
window.location = "appname://";
This method what does is wait for 25 ms to open native app after it renders in browser...If app doesnot open then renders view in browser..
The problem is it used to work fine in iOS 8..But while testing on iOS 9 ,I get this pop up as
"Open this page in APP".
So user is not able to tap on popUp and app doesnot get notified.After some seconds the popup disappears and view renders in browser..
How do i handle this behaviour?
Or is there any other way i should think of ?