Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with iOS #23

Open
agravatfemina opened this issue Mar 9, 2017 · 5 comments
Open

Not working with iOS #23

agravatfemina opened this issue Mar 9, 2017 · 5 comments

Comments

@agravatfemina
Copy link

agravatfemina commented Mar 9, 2017

I've added this script in web page. When URL opens in Android Device it's working fine. But it is not working iOS device it redirects to APP store..

@hassanabidpk
Copy link

Same problem with me. But on iOS it works fine with chrome. Only problem is with Safar. @agravatfemina have you figured it out?

@Alex-BSD
Copy link

I confirm the bug on iOS, works in Chrome but not in Safari... is there a fix yet?

@TheMrugraj
Copy link

Any solution on this issue ?

@WuglyakBolgoink
Copy link

same in 2020 :(

@hassanabidpk , @TheMrugraj , @agravatfemina , @jester6san any updates or workaround in this issue?

@clenemt
Copy link

clenemt commented Apr 29, 2021

The problem is as follow:

  // Safari only supports src redirect
  // iOS supports all excepts src redirect
  iframe.src = isDesktopSafari() ? getRedirectURL() : '';
  iframe.onload = () => {
    iframe.parentNode.removeChild(iframe);
    window.location.href = getRedirectURL();
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants