mgks / Android-SmartWebView

A simple use webview integrated w/ native features to help create most advanced hybrid applications.
https://mgks.dev/smart-webview
MIT License
559 stars 278 forks source link

Download error #173

Open ismalel opened 4 years ago

ismalel commented 4 years ago

Hi,

The app works great but im having issues downloading files

Error: Process: mgks.os.webview, PID: 10751 java.lang.IllegalArgumentException: Can only download HTTP/HTTPS URIs: blob:https://webapp.com/7dc5df5b-bb63-4852-98a1-1df89b34712e at android.app.DownloadManager$Request.<init>(DownloadManager.java:497) at mgks.os.webview.MainActivity$5.onDownloadStart(MainActivity.java:361) at Ox0.handleMessage(chromium-Monochrome.aab-stable-410410673:157) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:201) at android.app.ActivityThread.main(ActivityThread.java:6864) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873)

Im doing something wrong?

mgks commented 4 years ago

Seems like app is trying to download a blog file. Download function is configured to process complete file URIs only, that's why it could be happening.

indraAsLesmana commented 2 years ago

same issue, my problem The website give me base64 image data:image/png;base64 not static URL.

mgks commented 2 years ago

is this happening in any specific device or android version?

indraAsLesmana commented 2 years ago

all new android version i think starting 6. require file path provider write on xml. if it not setup it will crash.