I have this code that's supposed to get CloudKit to request permission from the user of my app to allow his/her user identifiable information to be known to my app, but I get an error.
@IBAction func actionGo(_ sender: UIBarButtonItem) {
CKContainer.default().requestApplicationPermission(.userDiscoverability) {
(status, error) in
print("error=", error)
}
The error says:
error= Optional(<CKError 0x60400025b480: "Service Unavailable" (6/2022); "Request failed with http status code 503"; Retry after 30.0 seconds>)
What does that error mean and how do I figure out what the problem is? Is it merely a matter of enabling certain setting in CloudKit?