Search code examples
androidangularcordovaionic-frameworkionic5

ionic 5 - keyboard hide input and page content in landscape mode


Android keyboard hide input and page content rather than scroll up

I have also try ionic cordova plugin add cordova-plugin-ionic-keyboard npm install @ionic-native/keyboard

But non of them works

Also try to add the property in androidmanifest.xml but nothing change

android:windowSoftInputMode="adjustResize"

android:windowSoftInputMode="adjustPan"

My whole app works in Landscape mode So same problem is persist on every input

Screenshot 1 https://i.sstatic.net/8ZiFm.jpg

Screenshot 2 https://i.sstatic.net/31gP7.jpg


Solution

  • Thanks for you response but i have fixed this here is the solution

    There is an Android bug that prevents the keyboard from resizing the WebView when the app is in full screen (i.e. if StatusBar plugin is used to hide the StatusBar). This setting, if set to true, add a workaround that resizes the WebView even when the app is in full screen.

    Boolean (false by default)

    Possible values false: doesn't resize the WebView when the app is in full screen. true: resizes the WebView when the app is in full screen. <preference name="resizeOnFullScreen" value="true" />