1
votes

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.

2
It would help to have more details about the exception. Turn on exception breakpoints in Xcode if you don't already and run the app. It should give you a clue where the exception is occuring. - Connor

2 Answers

1
votes

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

0
votes

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.