Reputation: 4600
Recently I encountered and issue in iOS that force closes the app when tapping on a text box. First, I thought it was something to do with Ionic View, so I built the app using Xcode. Still had the same issue. I started digging through the device console and noticed that I received an uncaught exception from the app when the keyboard is switching. Something about the keyboard UI was using a background thread, but any UI needed to be on the main thread. I was using the Swype keyboard at the time, so I turned Swype off and used the stock iOS keyboard. So far I have not had any issues using the stock keyboard.
Has anyone had any issue with using third party keyboards with iOS? This is a show stopper for my app at this point for iOS. I haven't had any issue with Android.
Upvotes: 1
Views: 214
Reputation: 53361
There is a bug with swype keyboard and webview input fields on iOS 9. The only solution right now is to restrict the use of 3rd party keyboards on your input fields. You can use this plugin to do so
https://github.com/kurtisf/cordova-plugin-restrict-keyboard
just install it with
cordova plugin add https://github.com/kurtisf/cordova-plugin-restrict-keyboard
no code needed
Upvotes: 1
Reputation: 728
Initialize your keyboard library instance in singleton class and then use the same reference everywhere in the app.This thing fixed my crash and i hope it will help you as well.
Upvotes: 0