Can we detect when running behind a Slide Over window?

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.)

Answered by Frameworks Engineer in 691763022

There is no means to detect this situation (by design). I would also say that it is a bug that the authorization API doesn't work correctly in this case – I would recommend filing a bug about hat if you already haven't.

Accepted Answer

There is no means to detect this situation (by design). I would also say that it is a bug that the authorization API doesn't work correctly in this case – I would recommend filing a bug about hat if you already haven't.

Thanks! I've entered FB9712270 for the wonky location authorization behavior.

Can we detect when running behind a Slide Over window?
 
 
Q