Ionic keyboard plugin is not working :(


#1

Ionic keyboard plugin is not working. I have tried every possible way.


#2

Can you provide some more information? Whats not working specifically? What version of ionic are you using? Cordova?


#3

ioninc v1.0.0-beta.7, ios7, cordova 2.9
I am unable to hide keyboard accessory bar. Keyboard event “native.keyboardshow” doesn’t work.


#4

I have the same issue.
Ionic beta11
$ cordova -v --> 3.5.0-0.2.6
android

I never get the alert (or any errors related to this):

var keyboardShowHandler = function (e){
  alert('Keyboard height is: ' + e.keyboardHeight);
}
window.addEventListener('native.keyboardshow', keyboardShowHandler);

#5

Actually, after many hours of searching I just put in that previous note and of course moments later, found the solution. The alert still never shows, but the keyboard is pushing up the content so that it doesn’t overlap the input.

The solution was from here:
http://ionicframework.com/docs/api/page/keyboard/

In ionic.js, I had to set isFullscreen = true

Make sure to read the full content of the link I gave and make sure to change ionic.js rather than ionic.bundle.js (that is assuming that you are using fullscreen).

Thanks ionic team! The answer was in your documentation.


#6

Remove keyboard plugin:

cordova plugin rm ionic-plugin-keyboard

and install again:

cordova plugin add ionic-plugin-keyboard@2.1

done! (works for me)