Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consideration of WebView APIs #5

Open
anawhj opened this issue Apr 20, 2022 · 2 comments
Open

Consideration of WebView APIs #5

anawhj opened this issue Apr 20, 2022 · 2 comments

Comments

@anawhj
Copy link

anawhj commented Apr 20, 2022

First of all, I try to casually say the definition of WebView which just renders a web page (html) inside native apps. In addition, it could be utilized as a window or frame like concept such as Chrome apps and Electron in which two or three webview elements can be rendered at the same time.

Regarding the second usage of WebView (probably the 1st one as well), we might need to a unified WebView interface (API) as a standard specification. You can refer to the relevant API sets as follows:

The API could take a role of managing a window (e.g. getTitle()) or communicating with the container platform (e.g. openDevTools()).
I wonder we could consider kinds of WebView APIs in this group, though I haven't considered it seriously before and not sure it makes sense or not. :)

@QingAn
Copy link
Contributor

QingAn commented Apr 21, 2022

Regarding the second usage of WebView (probably the 1st one as well), we might need to a unified WebView interface (API) as a standard specification

FYI, MiniApp handles it by using JS worker to manage the multiple WebView pages. See here: https://www.w3.org/TR/mini-app-white-paper/#separate-the-view-layer-from-the-logic-layer

@QingAn
Copy link
Contributor

QingAn commented May 6, 2022

Agree that a unified API handling communication between WebView and the Native can bring benefit.

@anawhj Is it possible that you rewrite the use case using our template? It would be better that the related use case and business scenarios, as well as the benefits and values to WebView vendors, can be further illustrated, which might increase the motivation that WebView vendors consider this possible exploration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants