cordova-plugin-keyboard
cordova-plugin-keyboard copied to clipboard
Implement keyboardWillShow / keyboardDidShow on Android
Thanks so much for creating / maintaining this plugin! It's been a boon to the app that I've been working on.
I've got one enhancement request that would make it even more amazing: to implement the keyboardWillShow / keyboardDidShow events on the Android side, passing along the keyboard height -- so we can change the UI as appropriate in our apps. It looks like there is the start of a solution here: https://pspdfkit.com/blog/2016/keyboard-handling-on-android/.
There was a previous pull request to add this feature (#15), but at the time I didn't see much of a need for it and the code worried me. It looks similar to this solution though, so perhaps we can revisit it. It seems to work well enough for ionic users.
I probably won't be able to implement this in the near future, but if somebody creates a PR, I'll definitely look at it.
I would also very much need some sort of detection mechanism when keyboard gets hidden on Android !
I have some stuff that are getting hidden when keyboard is open (bottom navigation for example), implemented it by detecting if input is focused od blurred, and it worked awesome on both Android and iOS until I noticed that on Android you can press physical back button once to close keyboard but focus remains !
+1 this is something I want as well.
Hi, no news from it ? definitely a must have feature. Anyone can confirm the PR working great without any side-cases ?
Nevermind, tried https://github.com/ionic-team/cordova-plugin-ionic-keyboard and it's working well. Thanks