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

In order to cultivate flutter ecosystem, we hope to implement JsBridge interface as soon as possible. #424

Closed
lyzcw opened this issue May 22, 2019 · 5 comments

Comments

@lyzcw
Copy link

lyzcw commented May 22, 2019

As the title.

@adammesa
Copy link

Who is "we" (aside from yourself)? By flutter ecosystem did you mean flutter WebView plugin ecosystem? Is this a request for someone else to implement this for you?

@lyzcw
Copy link
Author

lyzcw commented Jun 3, 2019

@muffinjello It should be the flutter ecosystem. Because of the widespread popularity of h5, the flutter ecosystem has to coexist with H5 for a long time. The integrity of flutter_webview_plugin can not be separated from JSBridge. We hope that the flutter community will contribute to the perfect experience for everyone. Thank you again for all contributions.

@adammesa
Copy link

adammesa commented Jun 3, 2019

I just took a look and saw that you have a JSBridge repository - it looks very elegant but I'm afraid I don't entirely understand how it works. Is the JavaScript messaging a Java server or port of sorts?

It would be conceivable that a helper class which makes a local HTTP server which is then pinged with ajax requests to transfer data into the system. I'm doubtful if this is worth it in comparison to listening for onUrlChanged.

@lyzcw
Copy link
Author

lyzcw commented Jun 3, 2019

JSBridge, my understanding is that h5's JS calls flutter through WebView's JS bridge. It is mainly used for JS calls to devices, such as using JS to set up cameras, microphones and so on. It can also call up custom flutter functions.

@charafau
Copy link
Collaborator

As long as it sounds interesting, I think it's way out of scope of this project (which is initially only to have some sort of webview - mainly for authentication, opening simple pages until Google's official webview is done).

Nothing stops you from using this project as base for your bridge though, but as for whole implementation we lack manpower.

Closing for now.

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

No branches or pull requests

3 participants