You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Keyboard listeners don't fire on Android <= 10 devices when android:windowSoftInputMode="adjustPan" is set. Changing the input mode to adjustResize makes the listeners work again, however we used adjustPan since it allowed us to get the keyboardHeight without the webivew being resized. Looking at the diff (c4f9165) it seems that the implmentation was basically replaced completely. Something about the new implmentation made it stop working for the adjustPan mode on older Android sdks.
What is working:
Android 10 + downgrading to v5 of capacitor-keyboard
soft input mode adjustPan on newer Android devices (tested on Android 14)
soft input mode adjustResize
Plugin(s)
@capacitor/keyboard
Capacitor Version
6
Platform(s)
Android
Current Behavior
No keyboard events are dispatched when android:windowSoftInputMode="adjustPan" is set on the activity on older SDKs. Tested on SDK 29 Emulator and Android 10 real device. Android 14 does work with "adjustPan": keyboard events are dispatched, including correct keyboardHeight.
Expected Behavior
Keyboard events are dispatched when using "adjustPan" and older (supported) devices - like it did with V5.
Code Reproduction
Set android:windowSoftInputMode="adjustPan" on the main activity and test with an SDK 29 emulator. No keyboard events are dispatched.
The text was updated successfully, but these errors were encountered:
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.
Bug Report
Keyboard listeners don't fire on Android <= 10 devices when android:windowSoftInputMode="adjustPan" is set. Changing the input mode to adjustResize makes the listeners work again, however we used adjustPan since it allowed us to get the keyboardHeight without the webivew being resized. Looking at the diff (c4f9165) it seems that the implmentation was basically replaced completely. Something about the new implmentation made it stop working for the adjustPan mode on older Android sdks.
What is working:
Plugin(s)
@capacitor/keyboard
Capacitor Version
6
Platform(s)
Android
Current Behavior
No keyboard events are dispatched when
android:windowSoftInputMode="adjustPan"
is set on the activity on older SDKs. Tested on SDK 29 Emulator and Android 10 real device. Android 14 does work with "adjustPan": keyboard events are dispatched, including correct keyboardHeight.Expected Behavior
Keyboard events are dispatched when using "adjustPan" and older (supported) devices - like it did with V5.
Code Reproduction
Set
android:windowSoftInputMode="adjustPan"
on the main activity and test with an SDK 29 emulator. No keyboard events are dispatched.The text was updated successfully, but these errors were encountered: