Webview loadHTML make app crash Kodular Version 1.5.2

Hi Koders!
Application closes after Webview loadHTML.


AIA File
WebviewLoadHTML.aia (1.6 KB)
APK
WebviewLoadHTML.apk (5.1 MB)

1 Like

Crashes even with companion 1.5.2..

Catlog Webviev_loadHTML.txt (78.7 KB)

well, basically after update, components crash apps if properties are null/blank

Correct me if I am wrong :thinking:

Not for this one.

3 Likes

Same Problem for me as well! I am Trying to load html page, App is crashing after exporting

1 Like

Same problem here. Is there any other way to show html layouts or images in app..??
Please help, I need to update my app.

You can use CustomWebView.

1 Like

Thanks for reply…I tried but app still crashing.. :worried:

For a while I changed the Webview loadHTML block to WebView gotoURL


upload html file to asset.
Work if export to Apk.

Try this and see if it works for you

WebviewLoadHTML.apk (5.2 MB)

Get the logs then.

Sorry for mistek. I tried with CustomWebView, it working now.

It also works with web_viewer component when we use Extended Web Viewer Extension

Blocks

6 Likes

So basically issue is in WebViewClient of WebViewer component.

2 Likes

try to add a new apk screen or make new apk, my web view start works when i delete old screen and make a new one with same parameters , its strange but it is works. And i cant run veb view when i build it on diffenetly same old screen of apk. main idea: no renew, just new ! copy all blocks and parameters , but on new apk.

work for me, what is wrong?

Solved with this @Taifun tip.

tested on Android 11.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.