I am trying to request the users permission to share their information using this function: func requestPermission() { CKContainer.default().requestApplicationPermission([.userDiscoverability]) { [weak self] returnedStatus, returnedError in DispatchQueue.main.async { if returnedStatus == .granted { self?.permissionStatus = true } } } }
But it is not working. I am signed into my apple id and it still is not working. Any ideas?