Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12828

InAppBrowser - intercept POST events

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: cordova@7.0.0
    • Fix Version/s: Master
    • Labels:
      None

      Description

      Hi,
      I’m using InAppBrowser to display a web application, in which, clicking a button, I am supposed to download and open a pdf.

      The button once clicked triggers a POST; I am not able to “download the file” using the plugin though.

      The server response is of type:
      Content-Type application/pdf
      Content-Disposition attachment;filename="guide.pdf"

      Is there any smart way to be able to intercept the download of the file instead of opening the resulting file in the main webview (which will replace the entire web application)?

      Thank you!

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Gazz Riccardo Gazzea
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: