How do I know if the ionic keyboard is working?


#1

Hi guys.

I reported a keyboard / popup issue in the latest beta release post, but I thought I’d make an effort to see if my app is actually using the ionic keyboard.

How do I make CERTAIN this is happening? Visually I see no difference pre-Ionic keyboard and post-Ionic keyboard, am I doing something wrong?

I’ve installed the plugin via the CLI and I’ve added the following in my config.xml:

<preference name="BackupWebStorage" value="none" />
<preference name="KeyboardShrinksView" value="false" />
<preference name="KeyboardDisplayRequiresUserAction" value="true" />

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

Thanks guys! :smile:
Ed


#2

add this to your application:

window.addEventListener('native.keyboardshow', keyboardShowHandler);

window.addEventListener('native.keyboardshow', keyboardShowHandler);
        
        function keyboardShowHandler(e) {
            alert("It works!");
        }