Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

81
Visualizações
Preventing iOS deep link modal

I need a redirect to a native iOS application, if the application is not installed, then a redirect to the App Store.

I already tried different methods like window.location.replace() and iframe with app url in src.

window.location.replace("MyIOSAPP://") is causing native safari modal with error, then nothing happends, I tried to catch that with trycatch construction, it doesn't get caught in the catch callback.

I also tried <iframe/>

const iframe = document.createElement("iframe");

iframe.style.border = "none";
iframe.style.width = "1px";
iframe.style.height = "1px";

iframe.onload = function () {
    document.location = "MyIOSAPP://";
};

iframe.src = "MyIOSAPP://"; //iOS app schema url

document.body.appendChild(iframe);

setTimeout(function () {
    window.location.href = "appstore url"; //fallback url
}, 300);

Link to MyIOSAPP:// is ignored, the setTimeout callback fires and I am being redirected to App Store without trying to open the native iOS app.

Please, help me solve this problem

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda