flutter_inappwebview icon indicating copy to clipboard operation
flutter_inappwebview copied to clipboard

[Web] onLoadStart not invoked in Flutter 3.19.0

Open elliotkhd opened this issue 1 year ago • 6 comments

  • [x] I have read the Getting Started section
  • [x] I have already searched for the same problem

Environment

Technology Version
Flutter version 3.19.0
Plugin version 6.0.0
Google Chrome version 121.0.6167.160

I've tried to figure out what is going on and I found in web_support.js(line 22) var iframe = document.getElementById(iframeId); the iframe is null but the iframe element can be found in Chrome dev mode.

elliotkhd avatar Feb 19 '24 06:02 elliotkhd

👋 @elliotkhd

NOTE: This comment is auto-generated.

Are you sure you have already searched for the same problem?

Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem!

If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue.

In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding android WebView [MY ERROR HERE] or ios WKWebView [MY ERROR HERE] keywords.

Following these steps can save you, me, and other people a lot of time, thanks!

github-actions[bot] avatar Feb 19 '24 06:02 github-actions[bot]

I have the same exact issue and found out the same result which is the var iframe = document.getElementById(iframeId); is null in web_support.js (line 22)

MeenaFawzy avatar Feb 20 '24 22:02 MeenaFawzy

I have the same issue, flutter 3.19.0.

Is there any workaround for this issue?

adsonpleal avatar Feb 22 '24 16:02 adsonpleal

Potentially related to https://github.com/flutter/flutter/issues/143922

p-mazhnik avatar Feb 24 '24 19:02 p-mazhnik

Until PR is merged you can use dependency override

dependency_overrides:
  flutter_inappwebview_web:
    git:
      url: https://github.com/p-mazhnik/flutter_inappwebview
      ref: web-fix
      path: flutter_inappwebview_web

szotp-lc avatar Apr 16 '24 13:04 szotp-lc

@szotp-lc can we please merge this fix?

madhavibrillio avatar Aug 12 '24 07:08 madhavibrillio