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

287
Vistas
Redirect to custom web page when Android App not installed instead of Play Store

I want to click a link that launches an app on Android. However, if the app is not installed, by default Android redirects to the Play store. I don't want this.

What I want is to be able to redirect to a custom webpage if the app is not installed. iOS seems to support this by using setTimeouts but according to this page https://vhudyma-blog.eu/open-mobile-application-from-the-browser/ there is no similar flow offered for Android. Thank you for your help.

if (isAndroid) {
      const url =
        "intent://instagram.com/#Intent;scheme=https;package=com.instagram.android;end";

      // open the app
      // if the app isn't installed, it seems we just go to the play store
      window.location.replace(url);

    } else if (isIOS) {

      // go to the app
      window.location.replace("instagram://");

      // open the app store on a timeout. this will happen but not be seen if instagram has opened
      setTimeout(() => {
        window.location.replace(
          "https://apps.apple.com/us/app/instagram/id389801252"
        );
      }, 10000);

    } else {

      // we're not in ios or android so just go to the website
      window.location.replace("https://instagram.com");
    }
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You might have a little luck with getInstalledRelatedApps()

const list = await navigator.getInstalledRelatedApps();

Here is an article about it: https://web.dev/get-installed-related-apps/

Even though it might not be too wildly supported.

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