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

234
Visualizações
Cordova: Open a link to a pdf in the app or browser

I'm trying to open a link to a pdf in a cordova app, whether it be in the cordova app or in the native browser, to allow the customer download it.

The app is a website loaded in the cordova app :

cordova index.html :

<html>
...
<script>window.location.href="https://www.website.url";</script>
<script src="cordova.js"></script>
</html>

The link to the pdf is in a website, I don't have access to the cordova.js script in the website.

In android, when I click the link (<a href="document url" target="_blank"></a>), nothing happens. I also tried to open a window (window.open(url)). Nothing happens either.

The reason of this redirection is because we did several apps of the same website for several clients, and we don't wan't to embed the sources in the app to not have to update each app every time we resolve a bug or add a feature.

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