GitHub user breautek added a comment to the discussion: Android Web Apps - Save file not working!
Short answer is, I don't think it's possible. Long answer: Webviews don't have a default implementation on how to handle "saves", but natively it can be handled via implementing a [DownloadListener](https://developer.android.com/reference/android/webkit/WebView#setDownloadListener(android.webkit.DownloadListener)), however I don't think the Cordova webview does this, thus downloads will not work. Plugins I don't believe have direct access to the webview (because they shouldn't assume it to be an `android.webkit.WebView`) so I don't think it can be extended by a plugin, short of of implementing a webview plugin itself. So perhaps a PR would be considered if it can display an android intent to let the user select where to download the file to. A potential workaround is to use the [file plugin](https://cordova.apache.org/docs/en/12.x/reference/cordova-plugin-file/index.html) instead, with the caveat that the file plugin should really only be used for internal/private app storage. If your intent is to let the user choose the file location so that they can easily access it outside of your application, then the file plugin might not be sufficient. GitHub link: https://github.com/apache/cordova/discussions/460#discussioncomment-8034622 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
