CustomWebView : An extended form of Web Viewer

Nice extension :fire::fire::fire:

2 Likes

I downloaded via your miniurl but i get naked ladies in front of a camera. I don’t think that is what you want.

7 Likes

Sorry…I was not aware that MiniURL will do that.
I am sorry :disappointed_relieved:
I will replace that as soon as possible.

3 Likes

I tested your extension with my e-book template. Still have to do some more work.

I had to change and add some blocks. Now i have a search function also. I like your extension very much.

10 Likes

Thank you @Peter.
Your appreciation means a lot to me :heart_eyes:
Once again Thank you :heart:

4 Likes

In my e-book template i have a javascript that records the position on the html page. I tried to make it work with your extension but i wasn’t succeeding. Now i saw the webview string change block. When i want to use that to store the value it gives me a

runtime error with unbound location $value at the end.

image

3 Likes

Thank you.
I will try to fix it as soon as possible (at least 30 minutes mom shouting at me :sweat_smile: ) :heart_eyes:

But I have found the bug.It is just because of not running method/task on ui thread.

5 Likes

Is this also explaining why the webviewstrings isn’t working?

image

2 Likes

I have no idea about that :thinking:
Actually I have no knowledge of JavaScript :sweat_smile:

2 Likes

ChangeLog Version 2
Changes

  • Fixed some spelling and grammar mistakes
  • Some internal changes

Bug Fixes

  • Fixed bug in Web View String Change event

Thank you @Peter for reporting bug :heart:
Let me know if v2 works for you :wink:

5 Likes

ebook_template_cw.aia (296.7 KB)

No runtime error but still not working what i want. What the javascript does is that it is giving the scrollposition in the html to the webviewstring block. But it is still not working.

I can not save it and when i get a value it is always zero.

4 Likes

Hi @Peter
Can you try replacing AppInventor with Makeroid and Kodular?
If none of these works then issue/bug can be found easily.

2 Likes

Changed it to Kodular but start noticing other things. When i run my original template with the standard webviewer i can view the pages in the companion.

With you webviewer i have to compile the app.
so this doesn’t seem to work.
image

It gives a net::ERR_ACCESS_DENIED error.

It also looks that the css file is not used when displaying the html-file.

3 Likes

Again You came with extra ordinary work, well done and congrats for this awesome work. Thank you.

3 Likes

It’s just amazing​:heart: again by you @vknow360

2 Likes

If you got this error in companion then:
I think this error is because of file access.By default file access is blocked in web view.You have to enable it manually either from designer or from blocks.

3 Likes

Hi @Peter
I compiled your both versions of ebook template.
Here are both APKs:
ebook_template_cw.apk (5.2 MB)
ebook_template.apk (5.2 MB)

I found no difference between them.
Also I am not able to locate main.css file and scroll.js is missing in all html files.
As soon as Companion starts working for me I can tell you correct test results.

3 Likes

Forgot to upload that. Scroll.js was present. It is at the bottom of the html page. css is working as it should but still have to build to test. I will be doing something wrong i guess so have to play some more.

3 Likes

Since I can grant access to the webcam, I tried it that way, but I couldn’t.


It gave the following error:
image

2 Likes

Thank you.
It will be fixed in v3 along with other other bugs :+1:

6 Likes