CustomWebView : An extended form of Web Viewer

Would you have any examples of how OnCloseWindowRequest would be used?
If it’s not too much trouble

Is there any way we can prevent/hide the app from appearing in the browser list every time someone clicks on a link?

Can we have this as a feature in this extension to hide the app from being shown in the browser list?

Use case: Any app with custom webview extension that is not a browser, such as apps showing a single website of their school, restaurant, shop, blog, etc., who doesn’t want their app to be shown as a browser, but are using this extension for other features not available in default webview.

You can disable deepLink

1 Like

You can understand it by an example:

  • user opens a website
  • a new window opens for google login
  • after login window closes and the focus returns to main window

Lastly, OnCloseWindowRequest will be triggered with id of webview which needs to be removed from the view system.

You will have to remove the @UsesActivities from the source and compile it.
Or you can wait for v9.

That will not work.
It will only disable internal deep links like map and whatsapp.

1 Like

Then what’s the solution ?

This:

and this:

1 Like

ad block is not working

Have you used it in correct way ? Show your blocks.

And see this :point_down:

And set block ads to true

You have to set the add host see this

how to set
my full block

Hi
Please wait sometime.I am going to create a guide about this.

1 Like

Removed the ‘@UsesActivities’ and compiled. Now the app is not being shown under browser list.
It worked.
Thanks @vknow360

1 Like

You can post the aix here, so others can also use it :slightly_smiling_face:

1 Like

Any solutions to the Ignore SSL Error block not working issue?

Hi
There are two solutions available.
1.If you know java then you can manually fix the issue
2.Wait for v9

1 Like
  1. I know Java but, I do not know how to create or edit extensions.
    If anyone have any useful link that I can utilize as a primer, please provide.
  2. Okay, please release it soon!

EDIT: The Ignore SSL feature works with Kodular default WebView component.
Hence I checked and compared the source codes of both @vknow360’s CustomWebView and Kodular’s default Webview.
It seems the Kodular default Webview resets the WebViewClient using the getWebViewClient method from com.google.appinventor.components.runtime.util.FroyoUtil package.
(Package Ref - FroyoUtil)

1 Like

I don’t think there is any difference.
Both methods check for ignoreSslErros value and proceed and cancel handler according to that.
Don’t worry I will fix it in v9.
Edit: Removing if condition made it work.

You would like to check my latest guide.

Kindly elaborate.


Important

v9 may broke your project.
Because after update all webviews will be able to trigger all events with their respective id.
So I will suggest to make a backup of your project before you update the extension.

1 Like

my project close i use your blocks then?

Then maybe just a reset is needed. After triggering Ignore SSL block just once in a default Webview enables CustomWebView to proceed with ignoring SSL errors on the same screen.

:+1:

1 Like