Skip to content
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

Open
1 of 2 tasks
RyanQuigleyOsi opened this issue Nov 13, 2024 · 17 comments
Open
1 of 2 tasks

Tap interactions not working on iOS 18.2 beta #2415

RyanQuigleyOsi opened this issue Nov 13, 2024 · 17 comments
Labels
bug Something isn't working

Comments

@RyanQuigleyOsi
Copy link

RyanQuigleyOsi commented Nov 13, 2024

Is there an existing issue for this?

  • I have searched the existing issues

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

  • I'm ready to work on this issue!
@RyanQuigleyOsi RyanQuigleyOsi added the bug Something isn't working label Nov 13, 2024
@pichillilorenzo
Copy link
Owner

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.
Also, please post the minimal code to reproduce the issue and, if possible, a screen record of the issue, thanks!

@RyanQuigleyOsi
Copy link
Author

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

@pichillilorenzo
Copy link
Owner

Have you tried to update to latest Flutter version? Maybe the master branch of Flutter?

@RyanQuigleyOsi
Copy link
Author

Updating to flutter master (3.27.0-1.0.pre.494) has the same behavior.

@pichillilorenzo
Copy link
Owner

Ok thanks for the test! did you create an issue on the Flutter official repo?

@RyanQuigleyOsi
Copy link
Author

I hadn't, but I'll link it here once I do.

@RyanQuigleyOsi
Copy link
Author

flutter/flutter#158961

@SoohyungJung
Copy link

@pichillilorenzo
Hello,

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!

@pichillilorenzo
Copy link
Owner

I have added a comment here: flutter/flutter#159911 (comment)

@hellohuanlin
Copy link

Hello, can anyone create a GitHub issue at flutter/flutter and zip a sample project, so I can verify the fix?

auto-submit bot pushed a commit to flutter/engine that referenced this issue Dec 13, 2024
…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
@hellohuanlin
Copy link

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.

@pichillilorenzo
Copy link
Owner

@hellohuanlin thanks! Could you add here the PR link that has this fix? Just for reference! Thanks again

@neerajsinghPS
Copy link

neerajsinghPS commented Dec 13, 2024

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?

@pichillilorenzo
Copy link
Owner

@neerajsinghPS I think you can try to use the main channel of Flutter, maybe tomorrow, as @hellohuanlin already said in the previous comment.

@pichillilorenzo
Copy link
Owner

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.

@SoohyungJung
Copy link

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
Hi, thank you for the update and the fix! Could you please let me know when the hotfix 3.27.1 and the 3.28 beta update will be available? I’d like to plan accordingly. Appreciate your help!

@hellohuanlin
Copy link

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:

flutter/engine#57172

flutter/engine#57176

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants