A Cordova plugin for managing keyboard behavior, resizing, and styling in hybrid mobile apps.
cordova-plugin-ionic-keyboard is a Cordova plugin that enhances keyboard handling in hybrid mobile apps built with frameworks like Ionic. It solves problems like improper viewport resizing when the keyboard opens, lack of control over keyboard appearance, and missing event listeners for keyboard interactions. The plugin provides configuration options and JavaScript APIs to manage keyboard behavior on iOS and Android.
Mobile developers using Cordova or Ionic to build hybrid applications who need fine-grained control over keyboard interactions and viewport adjustments.
Developers choose this plugin because it offers a comprehensive set of keyboard management features not available in core Cordova, including resize modes, style customization, and event handling, ensuring a native-like user experience in text input scenarios.
Keyboard Plugin for Cordova
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Offers configurable resize options ('native', 'body', 'ionic') for iOS, allowing developers to fine-tune how the viewport adjusts when the keyboard appears, as detailed in the KeyboardResizeMode preference.
Provides JavaScript methods like Keyboard.setKeyboardStyle() and Keyboard.hide() to dynamically manage keyboard appearance and behavior, enabling real-time adjustments based on user interactions.
Includes listeners for keyboard events such as 'keyboardWillShow' and 'keyboardDidHide', with event objects containing keyboardHeight, allowing for responsive UI updates without polling.
Addresses specific issues like Android full-screen resizing bugs via the resizeOnFullScreen preference, ensuring compatibility in edge cases where default behavior fails.
Many advanced capabilities, such as keyboard style customization and accessory bar management, are limited to iOS, leaving Android with fewer options and a less consistent API.
Requires cordova-plugin-ionic-webview for seamless operation, adding complexity and potential integration hurdles for non-Ionic Cordova projects, as noted in the README.
Methods like Keyboard.show() are Android-only, while others like setResizeMode() are iOS-only, creating a fragmented developer experience and necessating platform-specific code.