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
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.
Then what’s the solution ?
This:
and this:
ad block is not working
Have you used it in correct way ? Show your blocks.
And see this
And set block ads to true
You have to set the add host see this
Hi
Please wait sometime.I am going to create a guide about this.
Removed the ‘@UsesActivities’ and compiled. Now the app is not being shown under browser list.
It worked.
Thanks @vknow360
You can post the aix here, so others can also use it
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
- 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. - 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)
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.
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.