-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"loadData" method can't load html #2331
Comments
I am also facing such issue
[GETX] Info: _GetImpl Instance of '_GetImpl' runZonedGuarded: MissingPluginException(No implementation found for method loadData on channel com.pichillilorenzo/flutter_inappwebview_1) Doctor summary (to see all details, run flutter doctor -v): @Albert556 any update? |
It seems that your issue is not this. From the logs, it appears that the corresponding method for the platform method cannot be found, which may indicate a dependency issue where the plugin is not registered. |
but in other collections urls are loading. so this is not the case. |
After testing, I found the issue: loadData has limited functionality. In my case, //api.map.baidu.com needs a domain to supplement the protocol, and subsequent JS scripts call APIs like cookies, which all require a domain, leading to a series of errors. Although loadData provides a baseUrl, it does not work on Windows. Therefore, I switched to using the loadFile method to load a map.html, but I need to append the protocol to the URL as https://api.map.baidu.com. Working with local content in WebView2 apps
|
Perhaps it might help to take another look at the error logs to better understand the cause of the issue. |
I attempted to upgrade the dependencies to the latest stable versions of the packages. However, this led to the entire feature ceasing to function without any error logs. I will continue to investigate to see if I can identify any issues. Currently, I’ve observed that other collections successfully utilize an <iframe>, while this particular collection does not. This discrepancy may be contributing to the problem. |
|
Is there an existing issue for this?
Current Behavior
can't load js script
Expected Behavior
Normal loading
Steps with code example to reproduce
Stacktrace/Logs
log
[WindowsInAppWebViewWidget] (windows) WindowsInAppWebViewWidget ID 2419786390880 calling "onWebViewCreated" using []
[WindowsInAppWebViewController] (windows) WebView ID 2419786390880 calling "onUpdateVisitedHistory" using {isReload: false, url: about:blank}
[WindowsInAppWebViewController] (windows) WebView ID 2419786390880 calling "onProgressChanged" using {progress: 33}
[WindowsInAppWebViewController] (windows) WebView ID 2419786390880 calling "onUpdateVisitedHistory" using {isReload: false, url: about:blank}
[WindowsInAppWebViewController] (windows) WebView ID 2419786390880 calling "onTitleChanged" using {title: 单个逆地址解析}
[WindowsInAppWebViewController] (windows) WebView ID 2419786390880 calling "onProgressChanged" using {progress: 66}
[WindowsInAppWebViewController] (windows) WebView ID 2419786390880 calling "onProgressChanged" using {progress: 100}
[WindowsInAppWebViewController] (windows) WebView ID 2419786390880 calling "onLoadStop" using {url: about:blank}
console
Flutter version
v3.24.2
Operating System, Device-specific and/or Tool
Windows 11
Plugin version
v6.1.4
Additional information
No response
Self grab
The text was updated successfully, but these errors were encountered: