-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Tap interactions not working on iOS 18.2 beta #2415
Comments
Sorry but starting from 6.1.0, the flutter version required is 3.24.0, so It’s not possible you are using 6.2.0 beta version with 3.19.0. |
I forgot to add the flutter version to match the 6.2.0 beta but the comment should be updated along with the code I used for the demo video. I tested it on Android as well and it worked like normal. ClickDemo.mp4 |
Have you tried to update to latest Flutter version? Maybe the master branch of Flutter? |
Updating to flutter master (3.27.0-1.0.pre.494) has the same behavior. |
Ok thanks for the test! did you create an issue on the Flutter official repo? |
I hadn't, but I'll link it here once I do. |
@pichillilorenzo I am experiencing a similar issue. According to the following GitHub issues (#158961, #159911), it seems that this problem was resolved in Flutter version 3.27.0. It also appears to be working as expected when using webview_flutter. However, I am using flutter_inappwebview version 6.15.0, and the issue persists on iOS 18.2, even with Flutter version 3.27.0. When the webview is opened, and only its functionalities are used, the tap events work fine. However, if I open a Flutter feature (e.g., a flash bar or a bottom sheet) by interacting with a button inside the webview, the tap events within the webview stop working entirely afterward. I would greatly appreciate it if you could look into this issue. Thank you! |
I have added a comment here: flutter/flutter#159911 (comment) |
Hello, can anyone create a GitHub issue at flutter/flutter and zip a sample project, so I can verify the fix? |
…recursively (#57168) The original workaround ([PR](#56804)) works for the official web view plugin, but it doesn't work for a third party plugin `flutter_inappwebview` ([issue](https://github.com/pichillilorenzo/flutter_inappwebview)). Upon discussion with the author of that plugin, it turns out that their platform view is not a WKWebView, but rather a wrapper of WKWebView. This PR performs a DFS search of the view hierarchy, and enable the workaround as long as there's a WKWebView inside. TODO: pending sample project: I am quite positive that it should work, but **I haven't tried it since I don't have a sample project yet**. I have requested a sample project with them so I can verify the solution. *List which issues are fixed by this PR. You must list at least one issue.* pichillilorenzo/flutter_inappwebview#2415 *If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].* [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
FYI the fix is landed in main just now, which should be available in flutter's main channel very soon (likely tomorrow, after engine is rolled into the framework). I have also requested a hot-fix release to 3.27 (it will be 3.27.1), and a CP to 3.28 beta. |
@hellohuanlin thanks! Could you add here the PR link that has this fix? Just for reference! Thanks again |
Hi @pichillilorenzo, @hellohuanlin I’m facing an issue with flutter_inappwebview on iOS 18.2 where taps on items in one of my webviews don’t respond. its working fine in ios 18.1 or less. Could this be related to this bug? If so, is there any workaround available? |
@neerajsinghPS I think you can try to use the main channel of Flutter, maybe tomorrow, as @hellohuanlin already said in the previous comment. |
For reference, this is the PR that got merged: flutter/engine#57193 it seems it should be already available in the Flutter main channel. I don’t know if it will be available in a Flutter hotfix, I hope so. |
@hellohuanlin |
The engine fix is already rolled into the framework, which means it's already in the main channel. I can't say when hotfix and beta will be out, but I can confirm the fix will be in there: |
Is there an existing issue for this?
Current Behavior
Once I interact with any widget in the application that isn't the web view, the webview stops recognizing any tap interaction. I can still scroll and zoom fine. If I reload the controller it fixes things until I touch another widget again.
Expected Behavior
The webview should recognize the webview all the time.
Steps with code example to reproduce
Update your iOS device to the 18.2 and click on any other widget before using attempting to click on anything in a webview
InAppWebView(key: Constants.mapWebViewKey, initialUrlRequest: URLRequest(url: WebUri("https://flutter.dev")),);Stacktrace/Logs
I'm unable to get any logs related to this issue
Flutter version
3.19.0 and 3.24.4
Operating System, Device-specific and/or Tool
iOS 18.2 beta
Plugin version
6.0.0 and 6.2.0-beta.1
Additional information
I was also able to reproduce this issue with webview_flutter 4.10.0 so I'm thinking this might be a deeper issue with the iOS beta and not the webviews. If anyone has seen something like this before or has any insight it would be much appreciated.
Self grab
The text was updated successfully, but these errors were encountered: