Skip to content

NavigationDelegate and onPageFinished are not triggered on Web #28

@Dev-Ahmed-Adnan

Description

@Dev-Ahmed-Adnan

Hello all,

Thank you very much for this amazing package, it's been very useful.

this code is working fine on both iOS and Android and both navigationDelegate and onPageFinished are triggered but when running on Web both of them not triggered

WebViewX(
        width: context.width,
        height: context.height,
        initialContent: widget.url,
        initialSourceType: SourceType.url,
        javascriptMode: JavascriptMode.unrestricted,
        onWebViewCreated: (controller) {
          _controller = controller;
        },
        onPageFinished: (src) {
          print("src: $src");
        },
        navigationDelegate: (navigation) {
          print("navigation url: ${navigation.content.source}");
          return NavigationDecision.navigate;
        },
      )

thank you for keeping the package always updated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions