1

I have a code on the website which was checking the user agent and depending on OS to do the navigation into a native app.

function openPage(webUrl, appUrl) {
    var loadedAt = +new Date;
    var interval = setInterval(function () {
        var res = +new Date - loadedAt;
        if (res > 1000) {
            clearInterval(interval);
            // Try launching the website which will navigate you into the app store
            window.location.href = webUrl;
        }
    }, 250);
    // Try launching the app using URL schemes
    window.location.href = appUrl;
}

everything works fine till iOS v13. right now if the user go to my site then on the phone will be opened the first native app and then app store with this app. Any idea how to resolve this issue?

Taras Kovalenko
  • 2,323
  • 3
  • 24
  • 49

0 Answers0