cordova-plugin-ionic-keyboard icon indicating copy to clipboard operation
cordova-plugin-ionic-keyboard copied to clipboard

Incorrect Height Value on some Android devices

Open kensodemann opened this issue 4 years ago • 2 comments

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 avatar Jan 19 '21 17:01 kensodemann

@kensodemann have you figured anything out with this. I’m having an identical problem.

mattylight22 avatar Feb 04 '21 03:02 mattylight22

@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

kensodemann avatar Feb 04 '21 12:02 kensodemann

I have just noticed that the height on my one plus 8 pro is also incorrect.

SvenBudak avatar Oct 03 '24 19:10 SvenBudak