Home:ALL Converter>Detect if a iOS permission dialog is showing

Detect if a iOS permission dialog is showing

Ask Time:2017-09-06T18:10:38         Author:Sergio Viudes

Json Formatter

Is there a way to determine if a permission prompt is showing on iOS?

In my game, I want to stop many things when the app goes to background, but I don't want to stop them when the permission prompt shows (specifically record video permission shown by ReplayKit). So I want to know why the app goes to background: because home button is pressed, or because permission prompt is shown.

Author:Sergio Viudes,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/46072503/detect-if-a-ios-permission-dialog-is-showing
yy