capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

[Bug]: keyboard is hiding the input field on Android

Open Toto5931 opened this issue 6 months ago • 2 comments

Capacitor Version

Capacitor Version Capacitor Doctor

Latest Dependencies:

@capacitor/cli: 7.4.2 @capacitor/core: 7.4.2 @capacitor/android: 7.4.2 @capacitor/ios: 7.4.2

Installed Dependencies:

@capacitor/android: not installed @capacitor/cli: 7.4.2 @capacitor/core: 7.4.2 @capacitor/ios: 7.4.2

[error] Xcode is not installed

Other API Details

npm version: 8.19.4
node version : v20.14.0

Platforms Affected

  • [ ] iOS
  • [x] Android
  • [ ] Web

Current Behavior

When I type on an input field, the keyboard hides it See the minimum example in github https://github.com/Toto5931/app-mini/releases/tag/mini_app

Expected Behavior

I would expect the size of the webview to be reduced so that the input stays visible while we are typing

Project Reproduction

https://github.com/Toto5931/app-mini/releases/tag/mini_app

Additional Information

This problem is different from the https://github.com/ionic-team/capacitor/issues/8099 which concerns iOS I have looked at https://capacitorjs.com/docs/apis/keyboard but the resize option is Only available on iOS.

Image Image

Toto5931 avatar Aug 12 '25 20:08 Toto5931

This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed. Please see the Contributing Guide for how to create a Sample App. Thanks! Ionitron 💙

ionitron-bot[bot] avatar Aug 18 '25 15:08 ionitron-bot[bot]

Curious, what device or emulator were you using when you saw this? I tested your reproduction on a Pixel 9 Pro emulator and Samsung Galaxy 22 and the webview is scrolling down to reveal the field.

https://github.com/user-attachments/assets/db139973-a231-40b0-a0b3-831da147efbd

theproducer avatar Aug 18 '25 15:08 theproducer