CustomWebView : An extended form of Web Viewer

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

I can used incognito mode

3 Likes

how to add webview go home option

3 Likes

Do you want to use incognito mode?
If yes then use your own logic and when incognito mode is on then don’t save URL in history. Also you can use two webviews , one for normal mode and one for incognito mode.

It’s quite easy.Store home url in tinydb and when home button is clicked then go to that URL.

6 Likes

I tried this and got:
blocks (29)
Remember to leave FileAccess disabled.

9 Likes

Great it is working. Didn’t know that block existed. :shushing_face:

Now only the js i used in combination with the webviewstring.

7 Likes

@jarlissonlira2 you did it :partying_face:
Is it working in companion and apk both?

Here is a tip related to FileAccess:
Enabled: it can access all files from device
Disabled: it can’t access files from device but still you can load files from assets.

9 Likes

yes it is working.

4 Likes