flutter_webview_plugin:选择文件在 Flutter WebView 中不起作用在 Google Chrome 中工作

问题描述

我正在使用 flutter_webview_plugin: ^0.4.0 并且它工作成功,但文件选择器没有打开一个问题。

我必须从 WebView 中选择一个文件,但它显示“没有应用程序可以执行此操作。”

我正在使用以下代码

  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: _connectionStatus == ConnectivityResult.none
          ? Scaffold(body: NoInternetWidget())
          : WebviewScaffold(
              url: "https://app.capsavvycrm.com/admin",withZoom: true,primary: true,enableAppScheme: true,withLocalStorage: true,withLocalUrl: true,resizetoAvoidBottomInset: true,withOverviewmode: true,initialChild: Center(child: CircularProgressIndicator()),javascriptChannels: jsChannels,withJavascript: true,allowFileURLs: true,),);
  }

测试对象:

三星 galaxy J8 9.0:

  • 谷歌浏览器:工作(相机、文件),
  • WebView:工作(相机、文件

三星 C9 Pro 8.0.0:

  • 谷歌浏览器:工作正常,

enter image description here

  • WebView:@H_502_36@不工作

enter image description here

截图:

我不知道为什么会这样。有人可以帮忙吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)