iOS custom keyboard extension not posting UIKeyboardWillShow and UIKeyboardWillHide notifications after unlocking the device

I'm developing a custom keyboard extension for iOS and facing a strange issue. If you open custom keyboard from any app and lock the device and unlock it, the custom keyboard (or the OS) is not posting UI keyboard notification to the main app. I'm displaying a tableView above the custom keyboard and I want to update the main app's view according to the table view content height. When I dismiss keyboard manually by some actions and open it again, notifications are posting and everything works perfect.

In code, I've implemented required init, viewDidLoad, viewWillAppear and viewDidAppear methods and each of them getting called in all cases.

I expecting your expert opinion on this. Also I would like to know whether we can post the keyboard notification manually from custom keybord.

Thanks in advance.

Read more here:

Content Attribution

This content was originally published by S.Haris at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: