cordova-plugin-keyboard icon indicating copy to clipboard operation
cordova-plugin-keyboard copied to clipboard

Keyboard 'open' status leaks in from other apps

Open leonidez opened this issue 9 years ago • 1 comments

First, I'm using deep links to get to my app from an email or an sms app. In the case of iPhone's Messages app, if I click a deep link it will take me from Messages directly into my own app.

The attached is what my app looks like for a split second after launching. I have Keyboard.shrinkView(true) set on startup and I think the issue is that the keyboard was showing in my Messages app when I left it, and so the plugin recognizes that state briefly before the keyboard dismisses.

When I set Keyboard.shrinkView(false) on init the issue does not appear. When I click on a deep link without the keyboard showing in the Messages app the issue does not appear. Thanks for any help you can provide.

img_3662 png

leonidez avatar Mar 03 '16 16:03 leonidez

Hm. A possible fix could be to debounce the keyboard notifications.

As a workaround, have you tried calling Keyboard.shrinkView(true) within a timeout?

cjpearson avatar Mar 04 '16 01:03 cjpearson