I have a custom keyboard implemented as part of a bigger application. In this application I use a webview.
The problem is that whenever the keyboard is opened by a text area in the web view it takes forever for it to show and everytime I press a button of it it also lags. In the logs it is possible to see:
W/InputConnectionWrapper.ICC: Timed out waiting on IInputContextCallback
I tried the answer of a similar post and open the activity that contains the webview in a different process, but due to the architecture of the application it references some background services that are no longer available in that new process.
Is there any workaround this other than major changes to architecture or having the keyboard as a different application instead of being bundled on the main application?
Thanks in advance.