I have an application, which makes a simple integration through webview.
In this Webview, I need to enter a login and password. Navigation is normal.
But when I try to download a PDF file. It gives error.
It can even download, but instead of downloading the pdf file, it download is an html from the PHP page that generates the PDF.
It is the page of access denied, when trying to access the system without having logged in. But I’m already logged in, you understand? I browse normally between pages, only when I try to download the pdf that happens. I already tried everything that is within my reach of knowledge and I couldn’t solve it, I already read everything in the community about webview and downloads, but I couldn’t solve it. Below are my blocks.
I never used webview.
I know how to generate boletos: either you use a library ( TCPDF ) to generate your own boleto (I do my reports this way) or you use an API like GerenciaNet or Juno.
For example, GerenciaNet does not need to be logged in to access the boleto. I’ve already done the test, when I have a URL for the boleto, which I don’t need is logged in. Then I download the ticket without any problem.
But when I need to be logged in to download the boleto, this problem happens.
Instead of downloading the PDF. The page that generates the PDF is downloaded.
I’m doing tests with a CRM. And in this CRM, only logged in I can generate the boleto.
In another CRM that is integrated with GerenciaNet, when I click on the link to download the PDF of the boleto, it works normal because in this integration with the GerenciaNet, you do not need to be logged in to access the Boleto URL.
In this scenario where the error occurs. It is as if the download component of kodular was accessing the system for the first time, but I am already logged in, if not, I would not be able to see the downlod button in the pdf payment slip.
I don’t know if I managed to be clear. I don’t speak English, I need the translator.