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 applicationWillResignActive
and applicationDidBecomeActive
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 applicationWillResignActive
, nor do I reliably get viewWillDisappear
.
What’s the approved way to detect an incoming phone call from an iOS keyboard extension?