【问题标题】:Whether JavascriptChannels work in web version the webview plugin flutter?JavascriptChannels 是否在 web 版本中工作 webview 插件颤动?
【发布时间】:2022-09-30 03:01:45
【问题描述】:

我想在 Web 应用程序中使用 WebView 小部件。我使用webview_flutter_web,但是当我运行该应用程序时,我的JavascriptChannel 的消息不来,尽管在移动平台上一切正常,我在文档中没有找到关于这个问题的任何内容。有人可以帮我解决这个问题吗?提前致谢!

  • 请提供足够的代码,以便其他人可以更好地理解或重现该问题。

标签: flutter webview flutter-web


【解决方案1】:

根据自述文件:

It is currently severely limited and doesn't implement most of the available functionality. The following functionality is currently available:

loadUrl (Without headers)
requestUrl
loadHTMLString (Without baseUrl)
Setting the initialUrl through CreationParams.
Nothing else is currently supported.

webview_flutter_web 还不支持 JavascriptChannels。

【讨论】:

    猜你喜欢
    • 2021-10-13
    • 1970-01-01
    • 1970-01-01
    • 2021-06-28
    • 2020-12-06
    • 1970-01-01
    • 2012-03-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多