-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Downloading a URI starting with blob:http://... on android crashes the app #295
Comments
Hi @chaudhryjunaid , can you provide a minimal reproduceable repo so we can see this happening? |
@jamonholmgren will try to build one over the weekend if I get the time. |
I have the same issue. Need some help with that repo @chaudhryjunaid? Here is my crashalytics stack trace:
|
On iOS, navigating to a blob via This answer has a workaround, although not too elegant: In case you want to test this, you can create a blob link in JS with this: downloadData(reactNative = false) {
var link = document.createElement('a');
link.setAttribute('download', "foo.json");
var url = window.URL.createObjectURL(new Blob([JSON.stringify({foo: "bar"})], {type: 'text/json'}));
link.href = url;
if(reactNative) {
window.location.href = link.href;
} else {
document.body.appendChild(link);
link.click();
link.remove();
}
}
|
I'm having the same problem, any update on this? |
I am facing the same issue! @jamonholmgren any help? |
I'm facing the same issue, any update on this? |
I join the post, I am facing the same problem...
|
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
Here's an example to reproduce it:
The embedded codepen url has a link (Download JSON) which should download a json file, but the app crashes on clicking the link. |
Same problem. Any news? |
I'm having the same problem, any update on this? |
¿Alguien encontró alguna solución? |
Facing the same issue. Anyone found the solution? |
Also currently facing this issue, with PDF, Excel & CSV blob downloads |
I am also facing this same issue. Anyone have an anticipated date for a fix? |
Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically |
+1 |
Still searching for solutions |
Thanks to @aszenz for the minimal repro. If someone wants to tackle fixing this problem, I'm happy to review the PR! |
Hi! @jamonholmgren @aszenz probe to do that. <WebView It works in iOS, I have problems in Android. Error Android: |
@lamendaviesa |
@aszenz Thanks! |
why is this issue closed ? |
Still looking for an answer to this... Can someone help? |
Could anybody find a solution? |
Has anybody got the solution? |
Any leads? |
Any solution? |
I have the same problem unable to download pdf file. |
Any solution? |
Any Updates? Why is this closed! |
any news? |
I have a webview on Android that attempts to download an embedded pdf file via a blob URL. However, the app crashes on such attempt.
The text was updated successfully, but these errors were encountered: