CustomWebView : An extended form of Web Viewer

Hi @Andy_Bulka Welcome
You will have to manually create webview in an arrangement.
You can find more information here:

5 Likes

Sry silly question... ofc CustomWebView is itself a Dynamic Component
:sweat_smile:

I wanted to create it via DynamicComponentsExtension and asked myself why it didn't work like it supposed to do for me

2 Likes

Yes after latest update of his extension.
But there is no need to use it with his extension if you are using a version greater than >= v6.

2 Likes

I got this error when trying to create a WebView in Vertical Scroll Arrangement:

ScrollView can host only one direct child

Any reason?

1 Like

No need to discuss, just something I ranodmly discovered, this is not a problem

2 Likes
ChangeLog Version5

New blocks

Changes

  • Added secondaryUrl parameter in LongClicked event
ChangeLog Version6

New Blocks

Changes

  • Added 'id' parameter in CreateWebView method

  • Added 'mimeType' and 'isCaptureEnabled' values in FileUploadNeeded event

  • Removed most of the designer properties
  • Some internal changes
  • Fixed grammar and spelling mistakes
ChangeLog Version7

New Blocks




Bug Fixes

  • Fixed bug in PrintWebContent method
  • Fixed bug in FileUploadNeeded method

What's new

  • Ad Blocker
ChangeLog Version7.1 (Patch Update)

Changes

  • Re-added some properties to designer
  • Added missing permissions

Bug Fixes

  • Fixed bug in LongClickable property

Version 7.1: com.sunny.CustomWebView.aix (64.0 KB)


CustomWebView - lite

Presenting just another variant of CustomWebView.
Note: This version can run even on Api 11 i.e. Honeycomb

Blocks



Documentation
Most of blocks work same as original version except this new event:

  • OnSwipe
    Event raised when left or right swipe occurs in webview.It returns 1 for left swipe and 2 for right swipe.

    direction ~ int

Aix
com.sunny.CustomWebView.aix (14.0 KB)

5 Likes

Oh yeah! This is EXACTLY what I needed!!! Thank you very much! I wanted to make a Slideshow with Gifs, and this is now possible thanks to you!
:hugs:

3 Likes

That's why it is lite version :wink:

2 Likes

I, vknow360 aka Sunny Gupta, attest that I am the author of the CustomWebView extension , grant that the extension included in this project is free and that MIT has a non-exclusive irrevocable license to republish the extension as part of the project file for the purposes of the MIT App Inventor Hackathon 2020.

Thanks to @Yoshi :heart_eyes:

4 Likes

Thanks, now I have everything for my app :grin:

2 Likes

Problem solved forgot about the container :sweat_smile:

1 Like

Version 8:

4 Likes

Set UserAgent not working in a companion/compiled app, getting "403 disallowed_userAgent" when attemptng google sign up? (Tried five different user agents, all without ;wv)

1 Like

Hi @TIMAI2
Can you share your blocks and respective User Agents?

Hi Sunny

Is your extension working with HTML files, stored in App Assets, AI2 version nb184? The native WebViewer component cannot load files from anywhere, though it was perfectly fine in nb183.

I have not tested it yet.
Let me check.
But android version plays an important role here.
(I can test it only on Kitkat,Lollipop and Nougat)

Please see your PMs

ChangLog Version 9

Documentation

  • AfterArchiveSaved
    Event raised after 'SaveArchive' method.If 'success' is true then returns file path else empty string.
    image
    success ~ boolean
    filePath ~ text
  • GetInternalHistory
    Get internal history of given webview.
    image
    id ~ int
    Returns: list<String>
  • InvokeZoomPicker
    Invokes the graphical zoom picker widget for this WebView. This will result in the zoom widget appearing on the screen to control the zoom level of this WebView.Note that it does not checks whether zoom is enabled or not.
    image
  • LoadWithHeaders
    Loads the given URL with the specified additional HTTP headers defined is list of lists.
    image
    url ~ text
    headers ~ List<List<String>>
  • SaveArchive
    Saves the current view as a web archive
    image
    dir ~ string
    Note: Use absolute path here

Hope it helps!
Thank you.

3 Likes

Hi. Great extension. My question is update from v8 may require uninstall or only import new version?

Thank you.
You can simply import the new version to upgrade.