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

198
Vistas
How to redirect the user to mobile app or web app?

I have a web and mobile app and I want to share a link to open the mobile application if the user has installed it. But if it doesn't have it installed, I need to open the web application.

My code is

<body>
  redirecting...
  <script>
    window.location = `mobile-app-test://...`;

    setTimeout(function() {
      window.location = `https://webapp.com`;
    }, 1000);
  </script>
</body>

So I activate my application's schema and after a second I open the web application. But the code is bad.

Is it possible for me to validate if I opened the mobile application successfully? So I don't always need to open the web application after a second.

I want to try to open the mobile application and in case of error (it doesn't have it installed) then I open the web application.

Thanks =)

about 4 years ago · Juan Pablo Isaza
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