Hi,
We encounter an issue on tvOS15 where players are unable to save to cloud when they first play the game on tvOS.
If they have played the game before on other platforms before playing on Apple TV, they will not encounter this issue.
I am getting this error: CKError 0x281a07060: "Internal Error" (1/5000); "Failed to sync user keys">
whenever I call save. Anyone have encountered this issue before and if there is a known fix?
The code to save data is as follows:
CKContainer *container = [CKContainer containerWithIdentifier:self.containerIdentifier];
CKDatabase *privateDatabase = [container privateCloudDatabase];
[privateDatabase saveRecord:record completionHandler:^(CKRecord * _Nullable savedRecord, NSError * _Nullable error) {
if (error) {
NSLog(@"CloudKitManager::saveRecord - name=%@ error=%@", record.recordID.recordName, [error debugDescription]);
}
Thank you.