cordova-plugin-keyboard
cordova-plugin-keyboard copied to clipboard
HideKeyboardFormAccessoryBar not working in iOS 12.2
We have the plugin installed and have this in our config file:
<preference name="HideKeyboardFormAccessoryBar" value="true" />
but the accessory bar is still showing on devices with iOS 12.2
did you ever manage to fix this issue?
nothing seems to work in this plugin!
@phiasco12 We found that this plugin is not compatible with Cordova 9.0 at all, and had to roll back to Cordova 8
@kevinfoley thanks mate.
I'm using PGB cli-8.0.0 and I'm using this code in my javascript but it doesn't seem to work:
$(document).on('touchstart','input',function(){
cordova.plugins.Keyboard.hideFormAccessoryBar(true);
cordova.plugins.Keyboard.disableScrollingInShrinkView(true);
});
Unfortunately, the Github README is out of sync with the npm release. For now, try using window.Keyboard instead of cordova.plugins.Keyboard or install the plugin from GitHub. I'll push out a release soon that includes the new namespace.
@cjpearson thanks very much. I'll try your suggestion now.
@cjpearson
here's an update.
This worked fine:
window.Keyboard.hideFormAccessoryBar(true);
But this doesn't work at all:
window.Keyboard.disableScrollingInShrinkView(true);
When the keyboard opens on my phone, I can still scroll the page!
I'm testing this on my iphone 7 iOS 12.3.1
Any suggestion?
I'm not able to reproduce the scrolling issue or accessory bar issue. Do either of you have a small sample project that displays the problem?