[Bug]: keyboard is hiding the input field on Android
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.
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 💙
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