ionic-team / cordova-plugin-ionic-keyboard

Keyboard Plugin for Cordova
Other
193 stars 178 forks source link

ios accessory bar is not showing #70

Closed gaurav-chandra closed 5 years ago

gaurav-chandra commented 5 years ago
Keyboard.hideFormAccessoryBar(null, (currentValue) => { console.log(currentValue); });

or

Keyboard.hideFormAccessoryBar(false);

does not show the accessory bar on ios

using ionic v4 stable

jcesarmobile commented 5 years ago

Can you provide a sample app? I can't reproduce You have to call it while the keyboard is hidden, doesn't take effect if you run it while it's displayed, if it is displayed it will appear next time you open the keyboard.

gaurav-chandra commented 5 years ago

plain ionic 4 hello world. I am writing this in app.component.ts:

 this.platform.ready().then(() => {
            if (window.cordova) {
              Keyboard.hideFormAccessoryBar(null, (currentValue) => { console.log(currentValue); });
            }
}
jcesarmobile commented 5 years ago

That jus return true or false, doesn’t set the value

gaurav-chandra commented 5 years ago

At first I did: Keyboard.hideFormAccessoryBar(false); Since, it did not show the accessory bar, I resorted to the above code. Which does not give me any result. I will tinker more and will post the result here. Thanks for the help.

jcesarmobile commented 5 years ago

And what type of input/field do you use to show the keyboard?

Razorholt commented 5 years ago

Make sure the following preference in your config.xml file is set properly: <preference name="HideKeyboardFormAccessoryBar" value="false"/>

Although technically designed for Blackberry phones, it does hide the Accessory Bar ( including the done button) in iOS.

novemberstorm commented 5 years ago

Still can't get this to work for me, any idea?

jcesarmobile commented 5 years ago

Closing as I can't reproduce and the requested information was not provided