Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

275
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!