Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

271
Vistas
How to redirect to relevant app store if app is not installed on device on Safari?

Working with deep linking, I have the code snippet below on my web page.

The code works fine on Chrome but on Safari, I just get a message to say it could not find the deep link without redirecting.

On Chrome, it redirects to the relevant store if the app is not found.

"Safari cannot open the specified address: myapp://

I tried wrapping in a try catch block but to no avail. Any help is appreciated.

setTimeout(function () {
                if(navigator.userAgent.toLowerCase().indexOf("android") > -1) { 
                    window.open("http://play.google.com/store/apps/details?id=com.myapp","_top"); 
                }
                else if (navigator.userAgent.toLowerCase().indexOf("iphone") > -1) {
                window.open("https://apps.apple.com/us/app/myapp","_top");
                }
            }, 2000);

            window.location = "myapp://"; 
about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda