Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

267
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda