# Web viewer crash when open pdf in android

**URL:** <https://community.thunkable.com/t/web-viewer-crash-when-open-pdf-in-android/338961>\
**Category:** Questions about Thunkable X\
**Created:** [November 26, 2019, 4:06pm UTC](https://community.thunkable.com/t/web-viewer-crash-when-open-pdf-in-android/338961 "2019-11-26T16:06:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![posta83wte2](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@posta83wte2](https://community.thunkable.com/u/posta83wte2)\
**Post date:** [November 26, 2019, 4:06pm UTC](https://community.thunkable.com/t/web-viewer-crash-when-open-pdf-in-android/338961/1 "2019-11-26T16:06:04Z")

</div>

Dear,  
We try to force download file from link in webview but on android device the app have an unespected crash.  
We try to preview pdf file from webview but we receive same issue too.  
File link in webview is a standard link html to PHP page to force file download. With native browser work fine.  
How could we solve it?  
Thks in avance  
Best Regards

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [November 26, 2019, 4:16pm UTC](https://community.thunkable.com/t/web-viewer-crash-when-open-pdf-in-android/338961/2 "2019-11-26T16:16:21Z")

</div>

Hi, @posta83wte2! 👋

I also experienced this, when I tried to open a PDF Document in a webview.  
The reason is, Thunkable X has a in-built component, called `PDF Reader`, built specially for displaying PDFs in-app.

Learn more about PDF Reader [here](https://docs.thunkable.com/pdf-reader).

Thanks! 😊

---

<div class="post-metadata">

**Author:** ![posta83wte2](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@posta83wte2](https://community.thunkable.com/u/posta83wte2)\
**Post date:** [November 26, 2019, 4:26pm UTC](https://community.thunkable.com/t/web-viewer-crash-when-open-pdf-in-android/338961/3 "2019-11-26T16:26:23Z")

</div>

Hi,  
we would like to download file without PDF reader.  
We would like downloa image, pdf, doc, zip or other.  
We have a dynamic files list with differente mimetype.  
How could use native http download forcing in webview?  
Thanks

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [November 27, 2019, 1:10am UTC](https://community.thunkable.com/t/web-viewer-crash-when-open-pdf-in-android/338961/4 "2019-11-27T01:10:54Z")

</div>

Hi @posta83wte2, have you considered using the mediaDB to store you app media?

---

<div class="post-metadata">

**Author:** ![posta83wte2](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@posta83wte2](https://community.thunkable.com/u/posta83wte2)\
**Post date:** [November 28, 2019, 2:22pm UTC](https://community.thunkable.com/t/web-viewer-crash-when-open-pdf-in-android/338961/5 "2019-11-28T14:22:55Z")

</div>

We would to know if webview should be fixed sooner or later.

Other workaround are not good solution for us.  
We have a very good responsive website with more functions and we can’t rewrite code to solve issue came from webview.

Can you help us solve the problem of downloads with webview?

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [November 29, 2019, 9:55am UTC](https://community.thunkable.com/t/web-viewer-crash-when-open-pdf-in-android/338961/6 "2019-11-29T09:55:30Z")

</div>

Hi @posta83wte2,

I don’t think this is an issue of “fixing” the webviewer, since this is simply not a feature that it ever supported.

Can you tell me a little more about what type of app you are trying to build?

Thanks

---

<div class="post-metadata">

**Author:** ![posta83wte2](https://avatars.discourse-cdn.com/v4/letter/p/ac8455/32.png) [@posta83wte2](https://community.thunkable.com/u/posta83wte2)\
**Post date:** [November 29, 2019, 2:58pm UTC](https://community.thunkable.com/t/web-viewer-crash-when-open-pdf-in-android/338961/7 "2019-11-29T14:58:04Z")

</div>

We try to explain shortly.

In webview we show a page with sample link list to different content type/mimetype: image, pdf, other.  
On adnroid, only on android, only image link work. If we click on other mimetype link we receive a crash error. If we build and run app on ios all work fine.

Thanks in advance for your support!

 ![26](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/d/0dfc659c5be46b5aebedac74867b1dbca17f1175.jpeg)  
 ![36](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/7/27e096e1d41b4025103585c28f6f122863a21de9.jpeg)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:46am UTC](https://community.thunkable.com/t/web-viewer-crash-when-open-pdf-in-android/338961/8 "2024-11-08T11:46:32Z")

</div>


