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

266
Views
how to open apple store as website not as app

I'm trying to make a React.js page so when you scan a Qr code it goes to this page and the page redirects to the Apple app store or Google Play depending on your phone. google play is working just fine the problem is that if you open it from iPhone it doesn't work and if you have the app already installed it opens it, I want to open the app store on the web or the app itself, and is it possible that it opens in a new window instead of the same window. thanks in advance.

if (detect.os.name.toLocaleLowerCase() === "Android".toLocaleLowerCase()) {
    window.location =
      "https://play.google.com/store/apps/details?id=myAppId";
    setTimeout(() => (window.location.pathname = "/download"), 10000);
    return <div>redirecting to GooglePlay</div>;
  } else if (detect.os.name.toLocaleLowerCase() === "IOS".toLocaleLowerCase()) {
    window.location.href =
      "https://apps.apple.com/eg/app/myApp";
    setTimeout(() => (window.location.pathname = "/download"), 10000);
    return <div>redirecting to Apple Store</div>;

detect = parser(navigator.userAgent) and parser is a library I installed using npm

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