Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File download crashes react-native app #81

Open
vitexikora opened this issue Apr 5, 2023 · 0 comments
Open

File download crashes react-native app #81

vitexikora opened this issue Apr 5, 2023 · 0 comments

Comments

@vitexikora
Copy link

When downloading a file inside a webview in a react-native app (on Android), the whole app crashes with

E AndroidRuntime: FATAL EXCEPTION: main
E AndroidRuntime: Process: {{PACKAGENAME}}, PID: 21862
E AndroidRuntime: java.lang.IllegalArgumentException: Can not handle uri:: blob:{{URL}}
E AndroidRuntime:        at android.app.DownloadManager$Request.checkUri(DownloadManager.java:779)
E AndroidRuntime:        at android.app.DownloadManager$Request.<init>(DownloadManager.java:762)
E AndroidRuntime:        at com.reactnativecommunity.webview.RNCWebViewManager$2.onDownloadStart(RNCWebViewManager.java:214)
E AndroidRuntime:        at ya.handleMessage(chromium-TrichromeWebViewGoogle6432.aab-stable-556311634:522)
E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:106)
E AndroidRuntime:        at android.os.Looper.loopOnce(Looper.java:210)
E AndroidRuntime:        at android.os.Looper.loop(Looper.java:299)
E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:8293)
E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
E AndroidRuntime:        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:556)
E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)
E OOMEventManager: oom event not support this pkg, dismiss this!
F crashpad: -----BEGIN CRASHPAD MINIDUMP-----

Followed by dump of the blob.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant