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

HideKeyboardFormAccessoryBar not working in iOS 12.2

Open kevinfoley opened this issue 6 years ago • 7 comments

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

kevinfoley avatar Apr 02 '19 20:04 kevinfoley

did you ever manage to fix this issue?

nothing seems to work in this plugin!

phiasco12 avatar Jun 10 '19 19:06 phiasco12

@phiasco12 We found that this plugin is not compatible with Cordova 9.0 at all, and had to roll back to Cordova 8

kevinfoley avatar Jun 10 '19 19:06 kevinfoley

@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);

});

phiasco12 avatar Jun 10 '19 19:06 phiasco12

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 avatar Jun 10 '19 20:06 cjpearson

@cjpearson thanks very much. I'll try your suggestion now.

phiasco12 avatar Jun 10 '19 20:06 phiasco12

@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?

phiasco12 avatar Jun 10 '19 20:06 phiasco12

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?

cjpearson avatar Jun 18 '19 03:06 cjpearson