When an app is running full screen, is there an API to detect when a secondary app is running as a Slide Over window on top? I don't see anything in the lifecycle calls or trait collection that indicates this.
Why? I want to modify my app logic when running behind a Slide Over window, as a consequence of this issue where CLLocationManager
’s location authorization request API doesn't work as expected when in one of the iPad multitasking modes. That causes a bad user experience where the user clicks a button expecting an authorization prompt, but nothing happens.
(A cleaner solution would be to detect when the system defers presenting the location authorization prompt, but that doesn't seem to be supported either. The prompt can eventually appear after dismissing the Slide Over window, but that's too late to help a confused user.)