Page 1 of 1

Cannot download file through webview

Posted: Thu Jan 30, 2014 5:58 am
by Jeremy Cheng

I am using window.location at page show to redirect the entire screen to my own URL. If there is any html links to a downloadable file(ie .mp3), the link will not function, nothing happens when the link is clicked. How do I make it so that when a URL link is clicked that points to a file, the file starts being downloaded like the default browser behavior?


Cannot download file through webview

Posted: Thu Jan 30, 2014 8:38 am
by Maryna Brodina

Hello! You can open link in default browser, not in app and browser will work as usual http://cordova.apache.org/docs/en/3.0.... You can also search for PhoneGap plugin which saves file on click on link. Another way is to write your own code to save file. This link should help http://cordova.apache.org/docs/en/3.0...