-
Notifications
You must be signed in to change notification settings - Fork 28.6k
Embedded Android views can't bring up the keyboard #19718
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
Comments
anyone solved this problem? |
Still seeing the issue on the following versions. Surprised to see this issue is still not resolved after 6 months.
Tried both stable and beta channels.
Can someone respond with the status please. Thanks. |
Since as far as I can tell there isn't a way for an Android app to dynamically change the focused window, and as only the focused window can bring up and use a keyboard, the only approach I see right now is to setup up some proxying mechanism for input connections which isn't trivial on it's own as non trivial trickery is required to figure out when a webview is asking for keyboard. Last I dug into this I had a somewhat complex plan which I haven't tested yet (if someone have a suggestion for a clean solution I'd be very happy to hear about it). An alternative approach would be to use an iOS style platform view embedding mechanism when keyboard is needed (splitting the Flutter surface instead of rendering to a texture), this will have the drawback of not supporting all transforms (e.g if you'll opt in for keyboard support you will trade things like color filters, backdrop filter, perspective transforms and more). All this to say that this is a non trivial effort, I do think it is important and will try to get it, but right now I'm focusing on finalizing and quality of the current set of platform views features. |
Thank you very much for detailing the problem in hand, and its complexity. Currently using flutter_inappbrowser plugin based that is based on AndroidView, which is why I have this problem. I initially used the flutter community plugin "flutter_webview_plugin" but that doesn't support setting cookies (inappbrowser does). Is there a web view plugin you could recommend that supports setting webview cookies and not have this keyboard issue. Appreciate your response. |
I have no experience with webview plugins other than webview_flutter, you might have a better luck asking in one of the community channels: https://flutter.io/community |
Hello Guys, anyone solved this issue? |
Having the same issue with |
its really shame on flutter man! look at the issue its from Jul 24, 2018! @amirh any news can help us bro? |
@Steve-sy Please consider reading through https://github.com/flutter/flutter/blob/master/CODE_OF_CONDUCT.md at some point soon. Thanks! :-) |
In my app, when the WebView is showing, that is the only place there will ever be a need for a keyboard. In this scenario, the WebView is shown in full screen with a floating button to access settings and exit WebView. This plugin is great compared to the others I've tried but I really need that keyboard on Android. My app also has components written in Flutter, with many more to be added soon, but because we have a web login, we can't get very far (literally nowhere) in our app without a keyboard! Could we do something like a FullScreenWebView that DOES allow the window of virtual display's presentation to be focusable? Thanks |
A big thanks to @amirh for prioritising this. 💯 The PR is merged in master. We are going to test things on |
With version 0.3.10+3 of webview_flutter plugin and flutter on master channel it is now not possible anymore to copy and paste text from clipboard to input fields (tested on multiple Android 9 devices including emulator). Happens on multiple websites and also in the webview_flutter example app. |
@masewo This is an important feature for any "look up" application. Just open google in a WebView to try it out:
|
yeach, this issue still occurs, please read this #38668 (comment) |
After upgrading to webview_flutter 0.3.13 and Flutter 1.7.8 hotfix 4 stable, I can input text in normal textfield. But I still cannot input in password textfield. Could you please fix it? @amirh |
@jameszhao-io can you please file a new issue, this one is closed! |
After upgrading to webview_flutter 0.3.13 and Flutter 1.7.8 hotfix 3 stable, I can input text in normal textfield. But I still cannot input in password textfield. me too.@jameszhao-io |
@sldboy thanks for the report, do you mind filing a separate issue for password fields? |
This issue still persists in android 10 |
@marclester-tang what do you mean? Is there a regression that makes the issue reoccur on Android 10? I can't really tell what "still" means in this context, because the issue was solved thus it can't be "still" there. Or do you want us to know that the problem was never solved on your environment? What version of Flutter do you have? Regardless of your particular case it is the best idea if you file a new issue with your specific problem because it looks like the issue was solved for the majority of the people involved. |
@marclester-tang @pythoneer sounds like issue #38375. |
I can confirm that the keyboard issue is still present on Android 10, I tested on a Pixel 3a and the keyboard never appears when focusing an input text field of the web pages. |
Same issues today with keyboard. Can focus the input field within the WebViews but the keyboard does not populate the field. We tried on both a nexus and a Huawei mate 9 pro. |
@ChrisFetterly thanks for the report. Could you file a new issue for the problem you're seeing with the output of |
Hi guys, I am facing a problem with keyboard in Android that it overlaps input fields when it shows up. Is there anyone know this issue? |
On Android it doesn't seem to work if you click inside the textfield, it only works if you click on the top border of the textfield. Then the keyboard pops up. |
Thats probably because, in emulator setting the virtual keyboard is turned
off. However the problem could be have also been caused if you are using
the older version of the library if not then see if the keyboard is not
enabled in the setting as by default it is disabled in the emulator.
…On Wed, 7 Oct 2020, 15:55 Guilherme Carlos Matuella, < ***@***.***> wrote:
Hi guys,
The issue still occurs and it has been here for ages. Noone has found
already a solution?
I am opening a WEBPAGE in a FLUTTER WEBVIEW. The Keyboard works only for
ANDROID.
[image: Screenshot 2020-06-23 at 11 13 10 PM]
<https://user-images.githubusercontent.com/2046167/85669991-b97a5680-b6c0-11ea-9a9d-88e18904f440.png>
are you sure you haven't disabled the simulator visual keyboard (CMD + K /
SHIFT + CMD + K)?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#19718 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOW4IEFOYBISDCRWRSIDSULSJRCJJANCNFSM4FLUCUTA>
.
|
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 |
To make sure that Flutter can always bring up the keyboard I made the window of virtual display's presentation non focusable.
As a result the embedded Android views cannot bring up the keyboard.
We should figure out if there's some window trickery we can do to let the unfocused window bring up the keyboard. Alternatively see if it's possible to dynamically select the focused window when delivering input events.
The text was updated successfully, but these errors were encountered: