flutter_inappwebview
flutter_inappwebview copied to clipboard
OnDownloadStart event not starting
- [x] I have read the Get Started - Installation section
- [x] I have read and done the Get Started - Setup Android section
- [x] I have read and done the Get Started - Setup iOS section
- [x] I have already searched for the same problem
Environment
Technology | Version |
---|---|
Flutter version | 2.0.6 |
Plugin version | 5.3.2 |
Android version | 10 |
iOS version | 14.0.1 |
Xcode version | Version 12.5 (12E262) |
Device information:
Description
I am facing a problem where I am using useOnDownloadStart: true:
On Android, the onDownloadStart event is working perfectly; In IOS, instead of starting the event and downloading the image, it is opening the image. I have already made several settings on my backend, but until now, nothing in the image has started to download.
Would you have any tips for the case of IOS?
Expected behavior: My expectation is that the download will start automatically just like what happens on Android.
Current behavior: The download of the file is not starting as it occurs on android.
👋 @ederluca
NOTE: This comment is auto-generated.
Are you sure you have already searched for the same problem?
Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!
If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.
In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE]
or ios WKWebView [MY ERROR HERE]
keywords.
Following these steps can save you, me, and other people a lot of time, thanks!
does download works on iOS from webview? when I integrated this in iOS it throws an exception that 'It is supported in Android only'
I have same error for iOS 12.4 (I know it's old iOS, but anyway it's still supported by this plugin) and with XML files. onDownloadStart
is not being called and the XML is just being opened. Also it's need to be mentioned that the content-type of the requested file is text/xml
.
anyone found a fix for this? with latest versions (both plugin and ios), onDownloadStartRequest doesn't seem to be triggered
Some problem on IOS 16.2. When I click on button download on webview in debug mode I see that downloadCallback is called and progress is up.