FROM
<preference name="fullscreen" value="true" />
I needed to do the following two
a. Use https://github.com/madebycm/AndroidBug5497Workaround/blob/master/AndroidBug5497Workaround.java to make sure cordova / phonegap can see the window height change
b. Add the code below in js. This step is required depending on how the html is written.
document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady () { document.addEventListener('hidekeyboard', onKeyboardHide, false); document.addEventListener('showkeyboard', onKeyboardShow, false); } function onKeyboardHide() { console.log('onKeyboardHide'); } function onKeyboardShow(e) { console.log('onKeyboardShow'); setTimeout(function() { e.target.activeElement.scrollIntoViewIfNeeded() }, 500)
source share