# Webviewer crashing on Android when not visible

**URL:** https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155
**Category:** Questions about Thunkable X
**Tags:** webviewer, bugs, android
**Created:** [May 14, 2021, 2:42pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155 "2021-05-14T14:42:52Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![lamagalhaes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lamagalhaes/32/76611_2.png) [@lamagalhaes](https://community.thunkable.com/u/lamagalhaes)
#### Post date: [May 14, 2021, 2:42pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/1 "2021-05-14T14:42:52Z")

</div>

when you set visible = false (properties or block code) of webviewer… it’s crashing the app only on Android, iOS is working fine. It happens both Thunkable Live and downloaded.  
position:absolute not working either  
absolute size set to 0, also not working  
if no url, it works

my workaround: set absolute height to 0.1 and change background-color of my html to fit app’s color  
`https://x.thunkable.com/copy/150f6b7ffa06cb047bd6b64b06405afd`

---

<div class="post-metadata">

### Author: ![lamagalhaes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lamagalhaes/32/76611_2.png) [@lamagalhaes](https://community.thunkable.com/u/lamagalhaes)
#### Post date: [May 14, 2021, 6:19pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/3 "2021-05-14T18:19:47Z")

</div>

In fact it’s not working.  
Sometimes the screen crashes, sometimes it doesn’t.  
I tested an old APK and everything is normal.  
Probably some component updated is causing this.  
Is anyone having this issue?

A curious thing that I discover now… it works fine IF the webviewer is in first screen of app. But it doesn’t solve my problem!!

---

<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: [May 14, 2021, 6:46pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/4 "2021-05-14T18:46:07Z")

</div>

Thanks for flagging this @lamagalhaes could you use a second screen with your webviewer and navigate back and forth?

How are you using the webviewer visibility in your app?

---

<div class="post-metadata">

### Author: ![lamagalhaes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lamagalhaes/32/76611_2.png) [@lamagalhaes](https://community.thunkable.com/u/lamagalhaes)
#### Post date: [May 14, 2021, 6:53pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/5 "2021-05-14T18:53:13Z")

</div>

@domhnallohanlon tks for you reply!

No, it only works if the screen with the webviewer is the first one.

I need it always unvisible, but I can’t get it by change visiblity property on component or using blocking code ‘set visible to false’

---

<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: [May 14, 2021, 7:54pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/6 "2021-05-14T19:54:27Z")

</div>

> [@lamagalhaes](#):
>
> I need it always unvisible

Why does it need to always be hidden?

I’m not sure how a webviewer works if you can’t see it! 😄

---

<div class="post-metadata">

### Author: ![lamagalhaes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lamagalhaes/32/76611_2.png) [@lamagalhaes](https://community.thunkable.com/u/lamagalhaes)
#### Post date: [May 14, 2021, 7:56pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/7 "2021-05-14T19:56:51Z")

</div>

The url is an html with several javascript functions that I need.  
With this I work with PostMessage and ReceivesMessage of Webviewer.  
Learned this from @actech examples

---

<div class="post-metadata">

### Author: ![lamagalhaes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lamagalhaes/32/76611_2.png) [@lamagalhaes](https://community.thunkable.com/u/lamagalhaes)
#### Post date: [May 17, 2021, 9:25pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/8 "2021-05-17T21:25:26Z")

</div>

Any updates on this @domhnallohanlon? The issue continues…

---

<div class="post-metadata">

### Author: ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)
#### Post date: [May 19, 2021, 8:11am UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/9 "2021-05-19T08:11:55Z")

</div>

Hi there,

You say that your project works when you test an old APK. When did you most recently download an APK that does allow you to execute your javascript from a hidden Web Viewer?

---

<div class="post-metadata">

### Author: ![lamagalhaes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lamagalhaes/32/76611_2.png) [@lamagalhaes](https://community.thunkable.com/u/lamagalhaes)
#### Post date: [May 19, 2021, 11:47am UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/10 "2021-05-19T11:47:37Z")

</div>

Hi Jane,

It was between May 10 and 12, because on May, 13 it already have this issue.

---

<div class="post-metadata">

### Author: ![lamagalhaes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lamagalhaes/32/76611_2.png) [@lamagalhaes](https://community.thunkable.com/u/lamagalhaes)
#### Post date: [July 6, 2021, 12:31pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/11 "2021-07-06T12:31:32Z")

</div>

It’s not solved yet…

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [July 6, 2021, 12:57pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/12 "2021-07-06T12:57:22Z")

</div>

Just set the size of the `web viewer` to the smallest possible and position it off the screen. This way you can leave it visible.

---

<div class="post-metadata">

### Author: ![lamagalhaes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lamagalhaes/32/76611_2.png) [@lamagalhaes](https://community.thunkable.com/u/lamagalhaes)
#### Post date: [July 6, 2021, 1:12pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/13 "2021-07-06T13:12:08Z")

</div>

I know about it @muneer, I’m using it like this… but it’s not the ideal.  
It appears like a dot in the screen, when you have background color set, other than white.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [July 6, 2021, 4:32pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/14 "2021-07-06T16:32:19Z")

</div>

> [@lamagalhaes](#):
>
> It appears like a dot in the screen

It will not if you position it outside of the visible area of the screen.

You can set the X and Y position to -10 for example which will force the component to go off the screen.

---

<div class="post-metadata">

### Author: ![lamagalhaes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/lamagalhaes/32/76611_2.png) [@lamagalhaes](https://community.thunkable.com/u/lamagalhaes)
#### Post date: [July 6, 2021, 4:49pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/15 "2021-07-06T16:49:00Z")

</div>

I already tried this… but it does crash too

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [July 6, 2021, 5:26pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/16 "2021-07-06T17:26:15Z")

</div>

> [@App keeps crashing on Android APK & Live](https://community.thunkable.com/t/app-keeps-crashing-on-android-apk-live/1309554/28):
>
> This is what I did for the web viewer to work (DnD UI) to make it work. It never worked good if set to invisible. [image]

---

<div class="post-metadata">

### Author: ![f7a4d55febb042](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/f7a4d55febb042/32/159582_2.png) [@f7a4d55febb042](https://community.thunkable.com/u/f7a4d55febb042)
#### Post date: [July 15, 2021, 3:24pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/17 "2021-07-15T15:24:11Z")

</div>

I have the same problem ☹

---

<div class="post-metadata">

### Author: ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)
#### Post date: [March 14, 2022, 2:02pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/18 "2022-03-14T14:02:59Z")

</div>

I’m having this issue too but in a different way, because I’m not hiding the wbv itself but a column where it is in after changing its url.  
The problem:  
 ![ezgif-2-7af3d3d7cf](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/d/2d100ee1da2e680e39a4b6e9932ff796ba4b0432.gif)

The code:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/8/485352be0ee492d97c313cae00c8a35e812e793d.png)

The workaround is to set height and width of the column to zero.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [March 14, 2022, 2:58pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/19 "2022-03-14T14:58:28Z")

</div>

Read previous posts. This has been addressed already and not new.

---

<div class="post-metadata">

### Author: ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)
#### Post date: [March 14, 2022, 3:20pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/20 "2022-03-14T15:20:38Z")

</div>

yep, but still not working properly… maybe this will help thunkable staff to fix it.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [March 14, 2022, 4:59pm UTC](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155/21 "2022-03-14T16:59:17Z")

</div>

I’m saying the same case that you are facing has already been reported previously by at least two other members so Thunkable developers should be aware of it.

Anyway, thank you for your positive thinking.

[Next page](https://community.thunkable.com/t/webviewer-crashing-on-android-when-not-visible/1283155.md?page=2)
