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

233
Views
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
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!