【问题标题】:Communicate between Native app and Flutter web app as WebViewNative app 和 Flutter web app 作为 WebView 进行通信
【发布时间】:2021-12-31 19:51:42
【问题描述】:

我创建了一个 Flutter Web App,并尝试将其作为 WebView 嵌入到我的 iOS App 中。当用户从点击应用栏中的后退按钮时,如何将数据从Native app传递到Flutter Web App并退出Native App中的webView >Flutter 网络应用程序

复制步骤:

  • 构建 Flutter 网络应用
  • 将 Flutter Web 应用作为 WebView 嵌入到 Native App(iOS 和 Android 应用)中
  • 将数据从 Native 应用程序传递到 Flutter Web 应用程序
  • 当用户在 Flutter Web 应用的应用栏中单击后退按钮时退出 Native Web 应用

【问题讨论】:

    标签: android ios flutter dart flutter-web


    【解决方案1】:

    您无法与 android 或 ios 应用程序通信网络应用程序。因为您应该构建一个与其他平台无关的网络应用程序。您应该将 Web 部件部署为具有 URL 和 使用webview_flutter 插件进行网页查看。这样您就可以与this 等网络视图进行通信

    【讨论】:

      猜你喜欢
      • 2020-10-07
      • 1970-01-01
      • 1970-01-01
      • 2016-10-25
      • 1970-01-01
      • 2021-04-05
      • 1970-01-01
      • 1970-01-01
      • 2011-01-07
      相关资源
      最近更新 更多