Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

WebView on the Android platform is unable to execute JavaScript. #14

@lgs888

Description

@lgs888

Duplicate Check

Describe the bug

I attempted to run WebView on the Android platform, but found that it couldn't execute JavaScript. This issue doesn't exist on the web platform. Could you please tell me what might be the reason for this? flet==0.27.6 flet-webview==0.1.0 python==3.12 Android version 12

Code sample

Code
import flet as ft
from flet_webview import WebView

def main(page: ft.Page):
    wv = WebView(
        url="https://www.aixzzs.com/web/#/",
        enable_javascript=True,
        on_page_started=lambda _: print("Page started"),
        on_page_ended=lambda _: print("Page ended"),
        on_web_resource_error=lambda e: print("Page error:", e.data),
        expand=True,
    )
    page.add(wv)
      
ft.app(main)

To reproduce

  1. Build the application as an APK(arm64-v8a). 2. Install the APK on an Android device or emulator.

Expected behavior

The expectation is that WebView on the Android platform can execute JavaScript and display interactive web pages.

Screenshots / Videos

Captures

Image

[Upload media here]

Operating System

Linux

Operating system details

Build environment: Debian 12 operating environment: Android version: 12(arm64-v8a)

Flet version

flet==0.27.6

Regression

No, it isn't

Suggestions

No response

Logs

Logs
[Paste your logs here]

Additional details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions