After updating to iOS 13, the following code doesn't work anymore. The completion handler doesn't get called:
func requestAccess() {
SKCloudServiceController.requestAuthorization { status in
switch status {
case .authorized:
self.doAfterAuthorized()
case .denied, .restricted:
self.completion?([])
case .notDetermined:
self.completion?([])
@unknown default:
fatalError()
}
}
}
I'm on iOS 13 beta 4. I don't know if this is something exclusive to beta 4 or if already happened to older betas.
This issue may be related to https://forums.developer.apple.com/thread/119399