cordova-plugin-ionic-keyboard
cordova-plugin-ionic-keyboard copied to clipboard
Incorrect Height Value on some Android devices
On certain devices (Dallas helped me test it on his Galaxy S10 as I could not replicate it on the Pixel devices I have), the @ionic-enterprise/keyboard plugin will report the height of the keyboard as one value, and the Capacitor plugin will report a different value.
For Dallas it was: Cordova: 333 Capacitor: 375
The customer had similar results. In both cases, the larger Capacitor number appears to be the correct value.
To replicate this, I created the following app: https://github.com/kensodemann/test-keyboard-height
There are two useful branches here:
cordova: Cordova app, uses @ionic-enterprise/keyboard
capacitor: Capacitor app, uses Capacitor Keyboard API plugin
@kensodemann have you figured anything out with this. I’m having an identical problem.
@mattnick89 - there is a premier version of this plugin and it has been fixed there. Apparently, the same PR has not made its way in to the community version of the plugin, though it is marked as a future TODO (see the projects to the right). That team, however, is currently focused heavily on getting Capacitor v3 out the door.
The PR for the premier plugin was based on the following PR for Capacitor: https://github.com/ionic-team/capacitor/pull/2924
I have just noticed that the height on my one plus 8 pro is also incorrect.