Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HideKeyboardFormAccessoryBar not working in iOS 12.2 #88

Open
kevinfoley opened this issue Apr 2, 2019 · 7 comments
Open

HideKeyboardFormAccessoryBar not working in iOS 12.2 #88

kevinfoley opened this issue Apr 2, 2019 · 7 comments

Comments

@kevinfoley
Copy link

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

@phiasco12
Copy link

did you ever manage to fix this issue?

nothing seems to work in this plugin!

@kevinfoley
Copy link
Author

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

@phiasco12
Copy link

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

});

@cjpearson
Copy link
Owner

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.

@phiasco12
Copy link

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

@phiasco12
Copy link

phiasco12 commented Jun 10, 2019

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

@cjpearson
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants