CustomWebView : An extended form of Web Viewer

Hello Developers,
I would like to enable the website to return a message on no data connection, when user is data is on but no active data bundle.

Something like, you are offline, check your data connection.

Also it seems like the custom web view extension am using is missing the following blocks:

call CustomWebView1.Initialize
call CustomWebView1.LoadUrl
when CustomWebView1.OnErrorOccurred

Is there specific version of custom web view with the above blocks?

How do I go over this?

Thanks.


blocks
blocks (1)

@Ogwal_Bonny

Please in future post in the correct topic (final warning). Given you are using Kodular you would normally be being directed back to the Kodular community, and have your question closed off, but given your enquiry is about using CustomWebView, we are allowing it for now...

Then I need to take sometimes here and learn to post in the correct topic.

Thanks

To suggest an answer to your query, you could create a bespoke html page (upload to your assets / media folder) to load if the called web page timed out, which could give users advice on what happened and what to do next.

If your question is about CustomWebView, then find the CustomWebView topic (this topic) and post a reply. No need to keep creating new topics and make work for others to tidy up your mess.

I will do it, I didn't know that post are made topic by topic, was just posting randomly, I will correct it

Now, my biggest issue is with my web view extension, not having blocks to handle errors, blocks like when customwiewer1.on error

When customviewer1.error occur and other error related blocks.

The only block available is when customveiwer1. On received error.

Could my extension be missing some blocks? If so, could someone help me with a link to latest and complete extension.

Thanks

It is the thing you are looking for.
Simply hover cursor over the event block and you'll see the description.

I have this blocks for implement upload files and geolocation functions in my app, there is someone that could show me the correct example that works correctly? Thank you in advance




Hello this upload file block doesn't work, what is the issue?


thank you

Getting this code with CustomWebView ; Is there a new version for it

java.lang.ArrayIndexOutOfBoundsException: length=0; index=-1 at java.util.ArrayList.get(ArrayList.java:439) at com.sunny.CustomWebView.CustomWebView.getIndex(Unknown Source:26) at com.sunny.CustomWebView.CustomWebView.access$200(Unknown Source:0) at com.sunny.CustomWebView.CustomWebView$ChromeClient.onProgressChanged(Unknown Source:4) at WV.I80.d(chromium-TrichromeWebViewGoogle6432.aab-stable-720417938:19) at WV.F7.handleMessage(chromium-TrichromeWebViewGoogle6432.aab-stable-720417938:242) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7950) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) *Note:* You will not see another error reported for 5 seconds.

From the first line of the first post in this topic:

Download latest version here

I don't think that version works anymore.

Thousands might disagree...

Perhaps show your relevant blocks and what you are attempting...

Greetings Developer,

Could there be anybody who is having custom web view with this block below? I need to update my custom web view and use this block.

Thank you for your help in advance.

When CustomWebView.OnPageStarted

This block already exists ?

image

Sorry, I mean this block: CustomWebView.OnOverrideUrl

I am not getting it in my custom web view extension.
Thanks

From what I can see this block is not on offer.

What are you trying to do ?

I am trying to create a scenario where the custom web view app warns the users if they are opening a link which isn't my url.

A warning like, you are now leaving our app, the link you are entering could be dangerous.

Thanks

When PageStarts loading, if it does not contain your url then cancel loading and show whatever message you wish to show, otherwise don't do anything.

Not everything is available out of the box.