-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
EvaluateJavaScriptAsync does not work if WebViewRenderer is used #9211
Comments
When using handlers instead of renderers, EvaluateJavaScriptAsync method not found since its implemented from IView interface. Need implementation for EvaluateJavaScriptAsync method. |
Any update on this? |
Hi @yaho86. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time. |
Here you can find an implementation of the handler based on IWebView instead of IView https://github.com/Shishim4ru/MAUIWebViewExample |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
Description
WebView.EvaluateJavaScriptAsync
does nothing if WebViewRenderer is used. It works fine with default handler, though.Probably caused by this condition
maui/src/Controls/src/Core/WebView.cs
Line 117 in d94a1ad
Steps to Reproduce
WebViewRenderer
<WebView Source="..." />
WebView.EvaluateJavaScriptAsync("alert('Hello')")
(or any other JS code)Version with bug
6.0.400
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 12
Did you find any workaround?
Use handler instead of renderer.
Relevant log output
No response
The text was updated successfully, but these errors were encountered: