ionic-team / ionic-plugin-keyboard

Ionic Keyboard Plugin for Cordova
Apache License 2.0
610 stars 275 forks source link

ios9 cordova.plugins.Keyboard.close is not working #143

Open msio opened 9 years ago

msio commented 9 years ago

HI, cordova.plugins.Keyboard.close() is not working on ios9. I am using cordova 5.3.3. debug output from xcode 7.0.1. I am also using this plugin https://github.com/apache/cordova-plugins/tree/master/keyboard

2015-10-12 09:31:48.626 appName[2278:1052990] -[CDVCommandQueue executePending] [Line 159] FAILED pluginJSON = ["INVALID","Keyboard","close",[]] 
2015-10-12 09:31:48.637 appName[2278:1052990] ERROR: Method 'close:' not defined in Plugin 'Keyboard'

thank you for any help :+1:

scanferla commented 9 years ago

+1

ajohnsonRH commented 9 years ago

Hey, has this issue been addressed yet?

Thanks, ajohnsonrh

loomtronic commented 8 years ago

+1

loomtronic commented 8 years ago

Well I found that I didn't declare it in my controller, once I did that it worked

module.controller('MyCtrl', function($scope, $cordovaKeyboard) {

}

http://ngcordova.com/docs/plugins/keyboard/

mosmancouncilwebteam commented 8 years ago

Not working for me

pixael commented 8 years ago

Same problem here. I call $cordovaKeyboard.close() but nothing happens.

pitthehan commented 8 years ago

I think it may be the config.xml issue. Check your config.xml file about the following configuration Try to change

to
pitthehan commented 8 years ago

I think it may be the config.xml issue. Check your config.xml file about the following configuration Try to change feature name="Keyboard" param name="ios-package" onload="true" value="CDVKeyboard" to feature name="Keyboard" param name="ios-package" onload="true" value="IonicKeyboard"

aravind08 commented 8 years ago

Any update on this?

bz123 commented 8 years ago

@pitthehan has the solution, atm its searching for CDVKeyboard which is the original cordova plugin for it instead of ionicKeyboard

add

<feature name="Keyboard">
    <param name="ios-package" onload="true" value="IonicKeyboard"/>
  </feature>

or update your current Keyboard feature.

in your config.xml