private func acceptPermissionAlert() {
_ = addUIInterruptionMonitor(withDescription: "") { alert -> Bool in
if alert.buttons["Don’t Allow"].exists { //doesnt get here second time
alert.buttons.element(boundBy: 1).tapWhenExists()
return true
}
return false
}
}
と、このdoesntの仕事に関連するアラートのために呼び出されていません。addUIInterruptionMonitorのハンドラは、写真用
アプリの初めに通知の許可をaceptingながら、それは完璧に動作しますが、ここでは... doesnt仕事。
あなたはその理由を知っていますか?
どういう意味ですか?私はどこにそれを追加する必要がありますか? –