cordova-plugin-keyboard
cordova-plugin-keyboard copied to clipboard
HideKeyboardFormAccessoryBar config preference does not work on iOS 10
On iOS 10 the accessory bar is shown when the config preference HideKeyboardFormAccessoryBar
is set to true
. This is not as expected, accessory bar should not be shown. Tested on iPad 4 and iPad Pro.
On iOS 9 the config preference works as expected.
<preference name="HideKeyboardFormAccessoryBar" value="true"/>
Unfortunately the only way to hide the accessory bar is pretty hacky and can break whenever Apple changes its implementation. Are you using the WKWebView plugin or UIWebView?
@cjpearson I'm using the WKWebView plugin.
any suggestions on this?
iOS 10 has probably changed how WKWebView controls its accessory bar. It may be as simple as changing WKClassString to something other than WKContentView.
The WKWebView source code can be explored here. I just haven't been able to look into it yet.
Does anyone still see this issue? I don't see it on a 10.2 simulator.
Yes, is working on simulator, but not on real device.
any suggestions on this?
The same problem persists in iOS 13.4.1 Any ideas on how to fix it or solve it by other way?
@beesop the solution is to switch to flutter
@Semapl3 why does flutter solve this problem? Why compiling with flutter allows to use HideKeyboardFormAccessoryBar with iPad compared to compiling cordova locally or compiling cordova with Appflow or compiling cordova with Monaca...? What does flutter do that the others don't?
@beesop I consider Cordova = Winamp. This question is 2016. He is dead. (Sorry for my english)
@Semapl3 Cordova and its plugins is fully operational, thousands of apps in the stores are based on it today, if you do not use it, please do not assume that nobody does.
The question remains unanswered, in case someone who knows the answer is kind enough to help.
Thank you