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

Keyboard not showing when activating text field in web view #17

Closed
tp opened this issue Oct 24, 2022 · 7 comments
Closed

Keyboard not showing when activating text field in web view #17

tp opened this issue Oct 24, 2022 · 7 comments
Assignees
Labels
apple [See issue #68] Just Apple being Apple again... bug Something isn't working

Comments

@tp
Copy link

tp commented Oct 24, 2022

Describe the bug

We use this plugin in conjunction with Azure AD to sign into company accounts.

Bringing up the the "in-app browser" (ASWebAuthenticationSession) on iOS works fine, but sometimes tapping into the username/email field in the Microsoft login page does not bring up the keyboard. (The field is also auto-focused on the initial page, but alas the keyboard is not showing.)

I see no errors in the console, and the login screen of our Flutter app is also not doing anything "special" with the Keyboard (no Flutter-field even had focus until this point), so I don't have a guess as to what could be the issue here right now.

To Reproduce

Steps to reproduce the behavior:

  1. Launch our sign in URL with flutter_web_auth_2
  2. Get redirected to the Microsoft-hosted login page

Expected behavior

The in-app browser should work normally. Focusing a text field should bring up the keyboard.

Screenshots

CleanShot 2022-10-24 at 12 35 49@2x

As you can see the field is active (showing the menu), but the keyboard has not shown.

Device

  • Device: iPad mini (6th gen)
  • OS: iPad OS 15.7
  • Browser: "Safari" through flutter_web_auth_2
  • flutter_web_auth_2 version: 1.1.2
@tp tp added the bug Something isn't working label Oct 24, 2022
@tp
Copy link
Author

tp commented Oct 24, 2022

Seems like this was also a known issue before the fork: LinusU#120

@tp
Copy link
Author

tp commented Oct 24, 2022

Here a similar issue seems to occur with SwiftUI / native code: https://developer.apple.com/forums/thread/661132

Though a bit surprised that I don't find any reports on StackOverflow etc. if this would be a broader issue.

@ThexXTURBOXx
Copy link
Owner

This seems like it is a broader issue. However, just for testing: Could you try setting the preferEphemeral parameter to true and false if that makes a difference?

@tp
Copy link
Author

tp commented Oct 24, 2022

This seems like it is a broader issue. However, just for testing: Could you try setting the preferEphemeral parameter to true and false if that makes a difference?

The issue is present with both variants of preferEphemeral.

@ThexXTURBOXx
Copy link
Owner

ThexXTURBOXx commented Oct 24, 2022

That's weird. But that being said, I co not think this is an issue with flutter_web_auth_2, but rather again just some weird behavior on Apple's side of things.
Since I do not own Apple devices, I will not be able to fix this myself probably. Maybe, there is something in the documentation that you could try, but I have no idea (and Apple's documentation is very incomplete anyways)

@ThexXTURBOXx ThexXTURBOXx added the apple [See issue #68] Just Apple being Apple again... label Oct 24, 2022
@tp
Copy link
Author

tp commented Feb 6, 2023

FYI, this seems fixed for me since iOS 16.1.1 (or maybe even earlier, but this is the oldest version where I can reliable log in).

@ThexXTURBOXx
Copy link
Owner

Interesting, thanks for the update! I will update the troubleshooting guide accordingly and link to this issue. If there are any further problems, please let me know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apple [See issue #68] Just Apple being Apple again... bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants