CustomWebView : An extended form of Web Viewer

When any textarea first time clicked/focused , the page auto scrolled to top.
My html code,

<!DOCTYPE html>
<html>
<head>
<style>
  .dummy-content {
    height: 2000px; 
    border: 1px solid black;
    margin: 10px;
  }
</style>
</head>
<body>
<div class="dummy-content">Dummy Content 1</div>
<input type="text">
<textarea id="myTextarea"></textarea>
<div class="dummy-content">Dummy Content 2</div>
</body>
</html>

Perhaps something here you can try:

I tried e.preventDefault(); and e.stopPropagation() and return false;
and I tried them all.
nothing works.
once textarea focused, the keyboard push the page to top.
I even tried using setWebview when textarea focused, to set customWebview.scrollable to false, then after 3 seconds set it back to true, but nothing works.

The same html page works fine in WebViewer, But it auto scrolled in customWebView

There is your answer then ?

  • What is the latest version of the extension? [I'm confused] :face_with_spiral_eyes:

i can't find any explanation or example in there. customwebview is quitting immediately. I tried placing it in a vertical arrangment that is the only thing on the screen, and it still quits. Does it need some initialization? I am using only this:

image

Please advise

1 Like

Got this error when using WebView on my site. User

Webpage not available The webpage at intent://ak.onmantineer.com/4/6765106?var=5870576&intnt_r=true&bs=df38a8d9-e5cc-4a38-b4fe-5b6c768db616#Intent;scheme=https;package=com.android.chrome;end could not be loaded because: net::ERR_UNKNOWN_URL_SCHEME

You need a url that starts with either http or https.

Is that the only solution to the problem

That's an intent url (see chrome docs). You could try parsing the link, set the values of a activity launcher, and then launch it. The easier option would be to have chrome handle it through an activity launcher

Enable DeepLink property from blocks.
If it doesn't work then obtain url from ErrorOccurred event of CustomWebView and handle it yourself using Activity Starter.

And search before you ask.

1 Like

I want to load it internally instead of loading it externally. The deep link worked, but it loaded externally

Can anyone tell me how to load deep link internally

This is one of my favorite extensions ever. 10 out of 11

why? beacuse for beginners its hard to understand. Anyways, great extension.

1 Like

I uploaded I video to my website, it plays on browser, but when I want to play it with WebView on my app, it plays for a second then shows this error. The video playback was aborted due to a corruption problem or because the video used features your browser did not support. Please I need help

Are you using CustomWebView extension?

Yes

Show a screen recording of issue.

Hi App Inventor community,

I'm currently facing an issue with obtaining permissions for both audio and video in my app, while testing with AI Companion, I'm able to grant video permission, but audio permission seems to be missing. However, after installing the APK file on a device, neither audio nor video permissions are being granted.
Here's a snapshot of the blocks I'm using:

I've also attached the AIA file for reference. If anyone has encountered a similar issue or has any insights into what might be going wrong, I would greatly appreciate your help.

Thank you in advance for your assistance!

Videocallingappnew.aia (87.6 KB)