Android webapp won't open PDF on a https domain - android

The pdf isn't on the server yet, but is created on the run. The URL would look like https://mydomain.com/?pdf=example&params=abc. If I open it in the desktop Browser, the PDF is shown. But on the mobile phone, it won't alawys start downloading, and if it does, the file is not readable. In the LogCat I get the following error:
hostname mydomain.com was not verified.
I've seen that other people have stumpled over the same error message, but unfortunately they're all writing in Java, and as im developing a web app I don't have the possibility to write Java code to fix the problem. Thanks in advance for any help.

I could locate the problem. The certificate is only valid for https://www.mydomain.com, while I was trying to get the pdf without the www in the link. When I changed this, it worked. May be helpful for someone else with the same problem.

Related

Why do links to PDF documents now require https to work on Android phones?

We have a file server on which we place PDF documents and then embed links to them in a smart device app. Up until recently, using links to the PDF documents starting with http:// worked fine for Android and iPhone users. All could load the PDF file just fine. Then a few months back (approximately) Android phone users started reporting they would get an error when trying to load any PDF. Yet iPhone users had no issues loading the same PDF document. It was verified that these PDF documents (several) were not corrupted and opened fine when placed on another file server.
I have an iPhone so I can't give you the exact error msg received by Android users but to reproduce it, it was along the lines of... click the link to the PDF, a button appears showing View PDF, click that button and several apps appear to choose the app to open the PDF with, click one (like Adobe Reader, or Google Drive) and an error appears stating the file could not be opened and may be corrupted of the wrong syntax.
Tonight I found the solution.
The url to the PDF on all these documents on our server had been like http://...
but when I changed it to https://... it works fine.
I can't find ANYWHERE any mention of a change by Google that this is now a requirement.
My question...
Can someone explain and/or point me to a reference that explains why https must be used in embedded links to PDF documents? It seems like a pretty big deal to make this a requirement and not tell anyone. My searching the internet has so far not turned up anything.

Opening Browser in Android Device for Webpage UI testing

Anybody, tell me an way to open firefox and opera browsers in an android device and i have to get driver object for that browser, with the driver object I need to perform several actions on the webpage like, open the URL, getting element locations/positions, clicking the object, verifying the object attributes, etc., I am unsuccessful in using with "RemoteWebDriver" and "Selendroid Driver", so please give me some idea/approach to do it.
you are doing it in the wrong way. To use an android application in your selendroid driver you need to have the .apk file for that application. You can get .apk files for Firefox and Chrome by searching on Google Guru and use them as the application under test. You can load the URL which you want by using
driver.get("Your URL");
If you have any problem writing scripts go through documentation at Selendroid. And in case of further assistance edit your question.

500 server error only on mobile devices

I am getting a 500 server error on an HTML5 responsive template I bought,but only on mobile devices. It works fine on my desktop PC. I have contacted hostgator and they initially found a missing png file in a css file, so I contacted the theme developer, who said to move the png file to the specific location. I did that with no luck, he then said to contact my hosting provider (hostgator). They checked the error log again and found nothing. The url is thewalrusisme.com and any help would be appreciated.
Error 500
This error can only be resolved by fixes to the Web server software. It is not a client-side problem. It is up to the operators of the Web server site to locate and analyse the logs which should give further information about the error.

Apk file download issue in android default browser

I am trying to download an .apk file from android default browser using https connection and through servlet on sumbit button click to secure it but its not getting download
Exception :org.apache.catalina.connector.ClientAbortException: java.io.IOException: Broken pipe
the same thing is working fine in firefox browser in mobile and in PC too and when i remove the https or ssl certificate it will start to work with default also but i need it with https connection only so please help me regarding this.I did a research work on that and find the error in android default browser log:
V/SecDownloader(5049): CDHelpers : chooseExtensionFromMimeType: couldn't find
extensionm using CDContentType map for application/vnd.android.package-archive
i have also tried with different extensions but not even a text file is downloading .
please help.

what is the problem with android while downloading? can any one figure out?

The following link downloads a file from a site.it works fine in desktop browser. but it is not working in android default browser and in webview code(i used download listener too but not working).
I believe the Android default browser can't download .zip files by default (you should get a "This content is not supported" error).
If you want to download certain files through your own application though, you can try this this solution.
What code do you use? Could you specify it? I suggest you downloading it in AsyncTask via HTTP. Where do you save it? What is the error log? So many questions =)

Categories

Resources