Hyperlinks to PDFs in Android in-app browser | Community
Skip to main content
Keith_Gilbert
New Participant
January 17, 2017
Solved

Hyperlinks to PDFs in Android in-app browser

  • January 17, 2017
  • 14 replies
  • 33251 views

I have InDesign and HTML articles that contain a link to a PDF on a web server. When the link is tapped on an iOS device or the Web viewer, the PDF displays fine. But on Android devices the in-app browser is launched, but nothing displays. Setting the link to open in the device browser works fine on both iOS and Android. Is this a limitation of the Android in-app browser? Is there a workaround? I'd rather not use the device browser.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by RG21

I am definitely not an expert but I was having the same problem and I simply switched  the link from opening in the cordova inapp browser to a window open link.

Make sure you have a pdf reader on your device for this to work.

Here's my link now:

<a href="#" onclick="window.open('http://www.grace.to/newsletters/gn.pdf', '_system', 'location=no');    return false;"><img src="images/newsletter-tn.png" alt="Grace Notes" title="newsletter"> <h3>Grace Notes</h3><p>Read our newsletter</p></a>

Hope this helps.

14 replies

New Participant
March 8, 2021

I do not understand that I cannot just simply copy a link on a android tablets adope app. This is my way around it. You can share it so thats what I do I share to e mail in the a mail it comes up as a link and from there I can click on the link and copy so now I can paste it anywhere. But there should be no need for this long unnecessary trick. By share it should be an COPY LINK. Here is my link 

https://documentcloud.adobe.com/link/review?uri=urn:aaid:scds:US:d4e8b503-0d3c-4d48-afa3-2bc7c4d484f9

You have long press it  

RG21Accepted solution
New Participant
March 31, 2017

I am definitely not an expert but I was having the same problem and I simply switched  the link from opening in the cordova inapp browser to a window open link.

Make sure you have a pdf reader on your device for this to work.

Here's my link now:

<a href="#" onclick="window.open('http://www.grace.to/newsletters/gn.pdf', '_system', 'location=no');    return false;"><img src="images/newsletter-tn.png" alt="Grace Notes" title="newsletter"> <h3>Grace Notes</h3><p>Read our newsletter</p></a>

Hope this helps.

New Participant
February 13, 2017

Hi Kirk, when i make the button in the Adobe Experince manager i put this link WSK Official Site - World Global System​ inside the button. You wanted to know this?

So when i click with my Samsung on a result pdf does not load....

Many thanks

Employee
February 10, 2017

Hi TK_ITA,

I was able to download the app and get into the RESULTS section from within the in-app browser. However, all of the results were in HTML. They all successfully opened up within the in-app Webview. Can you share with me the exact URL that is linked from within the app? Feel free to send it privately if it is sensitive.


Thanks,Kirk

Employee
February 10, 2017

Hi Keith,

Thank you for the URLs. You provided both an HTTP URL that redirected to an HTTPS URL, as well as an independent HTTPS URL. The HTTP URL responds with a 301 that redirects to an HTTPS URL. Both HTTPS URLs return 503s (meaning they are unavailable). Can you let me know when your HTTPS web server is working again or send me different URLs? I'm testing via curl:

> curl -I [HTTPS_URL]

HTTP/1.1 503 Service Unavailable

> curl -I [HTTP_URL]

HTTP/1.1 301 Moved Permanently

Location: [DIFFERENT_HTTPS_URL]

> curl -I [DIFFERENT_HTTPS_URL]

HTTP/1.1 503 Service Unavailable

Thanks,

Kirk

Keith_Gilbert
New Participant
February 6, 2017

I sent you a couple of example URLs directly.

Keith_Gilbert
New Participant
February 6, 2017

Kirk, yes I'm indeed using the latest version of Adobe Reader for Android.

New Participant
February 6, 2017

Kirk can you help also me please?

i wrote you the instruction to move in our app so you can test the problem. Or i should open an other post?

WSK Promotion sull'App Store

You should click on WSK  (red button on the left top) than su VIEW FULL EVENT SCHEDULE, than on the first MORE, than on RESULTS, than on RESULTS (below the circuit, you are inside a website), than if you click you can't open the PDF with android.

Many Thanks

Employee
February 3, 2017

Hi Keith,

Can you verify that you've specifically been able to reproduce the https issue with Acrobat Reader (and not another PDF reader)? It is the burden of the PDF reader to handle the https intent and not all PDF readers handle https intents.

Also, can you include the URL of the PDF which you're testing? [Feel free to scramble the domain and/or some of the letters - I'm interested in the overall structure and placement of non-alpha characters.]

Thanks,

Kirk

New Participant
February 3, 2017

The same in our App. If i link directly to PDF it does work, but if i link to a website and than i try to open PDF it doesn't work.

We need solutions please!