We have a web page that redirects to our app with a deep link if it happens to be installed on your phone. This no longer works in iOS 9. I'm aware of the new Universal Links in iOS 9, but we don't have time to implement this before our release (in 2-3 weeks) nor will they work on the version of our app that is already in the field.
Here is the javascript code that is used by the web page:
if (window.location.hash !== '#noredirect') {
var frame = document.createElement('iframe');
window.location.hash = 'noredirect';
document.body.appendChild(frame);
frame.style.display = 'none';
frame.src = "#{@app_url}";
}
window.setTimeout(function() {
document.getElementById('redirectHelper').style.display = 'block';
window.location = "#{@redirect_url}";
}, 1500);
Does iOS 9 prevent javascript from opening my app with a custom url scheme?
BTW, this works fine in ios 7 and ios 8
BTW, I came here because DTS said that they couldn't help and this was the place to go. Reading through the other posts about the same problem, it looks like no one is getting an answer.
This is costing us money daily. (Our app has a higher conversion rate than our web site.) Sure would be nice if someone from Apple responded.
Hi Atiar,
How do you redirect from your website to your app?
I have the same problem with custom URL scheme, but it's still working when user initiates the action, e.g. clicks on the link with URL scheme. But currently it doesn't work if the link is inside an iframe.
Hey Arieg,
Yeah, this is an open using javascript within a frame. So sounds like the same issue.
(Responding from a different account since I don't seem to be able to get to the member center from my work account.)