Webviewer crashing on Android when not visible

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

1 Like

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!!

1 Like

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?

2 Likes

@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’

1 Like

Why does it need to always be hidden?

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

1 Like

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

1 Like

Any updates on this @domhnallohanlon? The issue continues…

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?

1 Like

Hi Jane,

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

It’s not solved yet…

1 Like

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.

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.

1 Like

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.

I already tried this… but it does crash too

1 Like

I have the same problem :frowning:

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

The code:
image

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

1 Like

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

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

1 Like

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.

1 Like