private func acceptPermissionAlert() { _ = addUIInterruptionMonitor(withDescription: \"\") { alert -> Bool in if alert.buttons[\"Don’t Allow\"].exists {
Add:
app.activate()
at the end of the method.
It will bring the app to foreground again (it will be in background because of the system alert)