You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/06/29 13:12:39 UTC

[GitHub] [cordova-plugin-inappbrowser] jfoclpf opened a new issue #498: ASPX files

jfoclpf opened a new issue #498: ASPX files
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/498
 
 
   It seems the plugin does not interpret/deals with correctly with ASPX files
   
   In the app I'm developing, I forward the the user to a `plugin-inappbrowser` browser with target set as `_blank`, wherein he follows a series of steps (wherein several events `loadstart` are fired), till a point where he shall download a PDF file (that's how it behaves in a normal browser or with target set as `_system`). I know how to [download a pdf file][1], but the url is returning a ASPX file.
   
   How to make the `inappbrowser` plugin correctly deal with ASPX files?
   
       var inAppBrowserRef = cordova.InAppBrowser.open('https://someurl.com', '_blank', options)
   
       inAppBrowserRef.addEventListener('loadstart', loadStartCallbackFunction)
   
       function loadStartCallbackFunction (event) {
         console.log('Authentication Window start loading')
   
         // get the last step where the pdf file is downloaded
         if (event.url.split('/').pop() === 'DocumentSigning.aspx') {
           console.log('downloading pdf...')
           // don't know what to do with this to make it download the pdf
         }
       }
   
   In normal browser behaviour the PDF file downloading should be triggered, but nothing happens
   
   
     [1]: https://stackoverflow.com/questions/33896026/cordova-ionic-download-file-from-inappbrowser

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org