Ionic 2 - IOS 10 Keyboard bug
Short description of the problem:
This happens on every ios 10 device. If you open a dialog (alert) und enter something into an input field and you close the dialog (by clicking the close button), then the keyboard will stay open and not close. I've tried to use the ionic keyboard plugin to close the keyboard manually upon clicking the button (Keyboard.close()), but it has zero affect.
I've created a new blank project (ionic start testProj --v2 --ts) and added a dialog with an input field and a button (actually took the code from the docs to make sure), it has the same effect.
Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc) There are no error messages or whatsoever.
Which Ionic Version? 1.x or 2.x 2
Run ionic info from terminal/cmd prompt: (paste output below)
Your system information:
Cordova CLI: 6.3.1 Gulp version: CLI version 3.9.1 Gulp local: Local version 3.9.1 Ionic Framework Version: 2.0.0-beta.11 Ionic CLI Version: 2.0.0-beta.37 Ionic App Lib Version: 2.0.0-beta.20 OS: Node Version: v6.3.0
It feels like there is something blocking, since the log output and a lot of events are having a weird behavior on ios.
Any news about this? Got a release on hold because of this bug.
@John0x would you mind trying this with our wkwebview plugin. Thanks!
Sadly it does not fix the bug. Have you tried recreating the bug as described in the first post?
I installed the plugin properly and it was running (confirmed), but still had the same behaviour.
Same problem here, the keyboard does not close and it's a big problem for iOS apps...
This happens in Ionic 2 RC0 as well; fixing this soon would greatly improve the confidence of those of us who are considering Ionic for a new app but want assurance that it will stay on top of device platform updates.
For me it's a pain to update my ionic2 beta 11 app version to RC0..
Yes, publishing a workaround that works prior to RC0 would also be super nice since the update isn't trivial.
I start to update today but as I'm not sure if there will be some big change log soon, I think it's better to wait and update my app when Ionic team will ensure there will not be any other BIGGGGG Change....
It's the RC, so there shouldn't be alot of big changes anymore. The Keyboard doesn't close automatically but you can close it yourself by subscribing to the onWillDismiss event and then close it manually (Keyboard.close() with the Keyboard plugin).
Thanks @John0x this is a good fix. Someone here notice there is a strange behavior when you launch an alert ? The view (only the content not the header) is turning white for some millisecond and then the alert is shown.
I'm seeing this problem too - the keyboard is not disappearing after an alert. IOS 10 (iPhone SE) running from within Ionic View.
Definitely a bug. I was also able to get rid of the keyboard by using onDidDismiss() and Keyboard.close() on the alert controller, but still looks unprofessional as the screen scrolls up including the header. Hope it gets fixed soon.
Is there an update to this bug? With RC.1 and iOS10 I still see the bug.
Yep I also see this one with rc1.
It also happens to me on RC1, and not in an alert. Just on a regular input on a regular form, if you send the form by tapping on return key, after the redirect with this.nav.setRoot the keyboard keeps open.
Working in this issue! Sorry for taking so long
I made a workaround importing Keyboard from 'ionic-native' anda executing 'Keyboard.close()' after the action I needed
Hi,
Importing the Keyboard and force it to close partially worked for me, as the input dialog sometimes stays open and freezes the app.
will this be fixed in the next version? Any hind on a release date for it?
Thanks for your effort. Cheers