How can I detect from an iOS Keyboard Extension if the keyboard is interrupted, for example an incoming phone call.
I have added observers for willResignActive and didBecomeActive in UIInputViewController's viewDidLoad. I have also added logging in those, plus logging in viewWillAppear and viewWillDisappear.
When I get an incoming phone call with my keyboard displayed -- I do not reliably get willResignActive, nor do I reliably get willDisappear.
What’s the approved way to detect an incoming phone call from a keyboard extension?