0

I created some custom keyboard, and although I wasn't able to really test it I have an impression that my keyboard is extremely unstable on device.

  1. In some cases it just isn't loaded in app (I have it with Telegram messenger; when my keyboard is active and I'm trying to open Telegram I don't have any keyboard at all from time to time; to fix it I have to open any other app with keyboard input and go back to Telegram).

  2. In some cases it is unloaded without user's interaction.

  3. In some cases it is shown in keyboards list (not in the settings, but after the long tap on the switch keyboard button) as "(null)-myKeyboard". Sometimes it happens just after install (but if I'm just wait for, like, a minute — it will work)

  4. In some cases — and this one worries me the most — my keyboard is removed from the active keyboards list in Settings.

When it works, it works. But it is obviously not very usable.

My keyboard is written in Swift (a bunch of buttons with a lot of NSLayoutConstraints, all written in code); I'm using Realm to store some constants; I have like 3-4 small images on buttons; I need full access for my keyboard.

Could you please give me some directions? What could be the problem here, and what is the best way to find it?

lithium
  • 1,272
  • 1
  • 14
  • 28
  • I have encountered the 4th case, but mostly when launching the keyboard from Xcode. As far as I remember, it behaves well without debugger and reinstalling the app (except for the delay when switching to my keyboard). I used ObjC+Realm – medvedNick Jan 26 '16 at 11:34
  • thanks. i have some delay too. i somehow made it shorter when i switched from CGrect to NSLayoutConstraints (which is strange, it should be vice versa), but it still here, especially before the first launch. did you find a way to remove the delay? – lithium Jan 26 '16 at 14:15
  • No, and it seems that there is no way to. Empty default keyboard has it too, and the keyboards from Appstore also do have it (See great Yandex keyboard, for example) – medvedNick Jan 26 '16 at 14:24

0 Answers0