Skip to content

InAppWebViewController loadData and loadUrl is not working with keepAlive on Linux #2798

@kuresaru

Description

@kuresaru

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

loadData() and loadUrl() is not working with keepAlive on Linux.

Expected Behavior

I tested it works on web but linux not

Steps with code example to reproduce

Steps with code example to reproduce
  Widget build(BuildContext context) {
    return InAppWebView(
      keepAlive: _webViewKeepAlive,  // remove this can working but i need it
      onWebViewCreated: (controller) {
        controller.loadData(
          data: widget.htmlContent,  // loadData() and loadUrl() is not working

Stacktrace/Logs

Stacktrace/Logs
MissingPluginException(No implementation found for method loadData on channel com.pichillilorenzo/flutter_inappwebview_1228207101211381613273172253157220024051148)

Flutter version

v3.41.4

Operating System, Device-specific and/or Tool

ParrorOS 7.1 (Based on Debian Linux)

my WPE environment (dpkg result):

ii  libwpe-1.0-1:amd64                               1.16.2-1                                  amd64        Base library for the WPE WebKit port
ii  libwpe-1.0-dev:amd64                             1.16.2-1                                  amd64        Base library for the WPE WebKit port - development files
ii  libwpebackend-fdo-1.0-1:amd64                    1.16.0-1                                  amd64        WPE backend for FreeDesktop.org
ii  libwpebackend-fdo-1.0-dev:amd64                  1.16.0-1                                  amd64        WPE backend for FreeDesktop.org - Development files
ii  libwpewebkit-2.0-1:amd64                         2.48.3-1                                  amd64        Web content engine for embedded devices
ii  libwpewebkit-2.0-dev:amd64                       2.48.3-1                                  amd64        Web content engine for embedded devices - development files

my flutter doctor result:

[!] Flutter (Channel stable, 3.41.4, on Parrot Security 7.1 (echo) 6.17.13+2-amd64, locale zh_CN.UTF-8) [62ms]
    • Flutter version 3.41.4 on channel stable at /home/kuresaru/flutter/flutter
    ! The flutter binary is not on your path. Consider adding /home/kuresaru/flutter/flutter/bin to your path.
    ! The dart binary is not on your path. Consider adding /home/kuresaru/flutter/flutter/bin to your path.
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ff37bef603 (8 天前), 2026-03-03 16:03:22 -0800
    • Engine revision e4b8dca3f1
    • Dart version 3.11.1
    • DevTools version 2.54.1
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets,
      omit-legacy-version-file, enable-lldb-debugging, enable-uiscene-migration
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 35.0.0) [1,886ms]
    • Android SDK at /home/kuresaru/Android/Sdk
    • Emulator version unknown
    • Platform android-36.1, build-tools 35.0.0
    • Java binary at: /usr/lib/jvm/java-17-openjdk-amd64/bin/java
      This JDK is specified in your Flutter configuration.
      To change the current JDK, run: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 17.0.18+8-Debian-1deb12u1)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Chrome - develop for the web [17ms]
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop [564ms]
    • Debian clang version 19.1.7 (3+b1)
    • cmake version 3.31.6
    • ninja version 1.12.1
    • pkg-config version 1.8.1
    • OpenGL core renderer: llvmpipe (LLVM 19.1.7, 256 bits) (X11)
    • OpenGL core version: 4.5 (Core Profile) Mesa 25.0.7-2 (X11)
    • OpenGL core shading language version: 4.50 (X11)
    • OpenGL ES renderer: llvmpipe (LLVM 19.1.7, 256 bits) (X11)
    • OpenGL ES version: OpenGL ES 3.2 Mesa 25.0.7-2 (X11)
    • OpenGL ES shading language version: OpenGL ES GLSL ES 3.20 (X11)
    • GL_EXT_framebuffer_blit: yes (X11)
    • GL_EXT_texture_format_BGRA8888: yes (X11)

Plugin version

v6.2.0-beta.3

Additional information

No response

Self grab

  • I'm ready to work on this issue!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions