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
webview_flutter plugin JavaScript popup boxes are not shown #34853
Comments
Same in iOS's webview. |
You can use
this as temp in |
Thanks @jerryzhoujw but I believe you are referring to a completely different, "community" plugin, not the official webview_flutter plugin in this repository. I can confirm that JavaScript alerts do work in flutter_webview_plugin. However, I will prefer to stay with the official webview_flutter plugin because I've already released an iOS version on the AppStore using that one. I do recall reading somewhere that they wanted to merge these two plugins. In the webview_flutter plugin, we are able to add our own JavaScript alert callbacks to FlutterWebView.m to show them, but I haven't found a way to make them work in Android using this plugin. Objective-C callback method that I added to get JavaScript alert working in iOS:
|
@nhojjava I have include the change in 2012 to fix iOS part. I'm not familiar android part, do you mean Android also didn't work with js |
@jerryzhoujw That is correct. |
Hello @nhojjava ! Thank you for posting an issue. Thank you. |
@janmoppel here it is please understand my delayed response as I've moved away from this Flutter project due to lack of support and functionality by Flutter. flutter doctor -v [√] Android toolchain - develop for Android devices (Android SDK version 29.0.2) [√] Android Studio (version 3.5) [√] Connected device (1 available) • No issues found! |
This issue it's the same as #30358 ? |
Closing as duplicate of #30358 |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
In Android WebView, JavaScript popups normally work without any extra coding in the WebView. Unfortunately, they are not working in my app using webview_flutter plugin.
Steps to Reproduce
You can reproduce by setting your webview_flutter plugin running on Android url to: 'https://www.w3schools.com/js/tryit.asp?filename=tryjs_confirm' and clicking the "try it" button.
Logs
The text was updated successfully, but these errors were encountered: