I am using Xamarin.iOS for developing my app. I was using CloudKit Record ID to identify Apple User.
I was looking for some unique value which can be used to uniquely identify user, but seems this record Id is not unique.
I was referring this answer How to get the current user ID in CloudKit?
My app currently in Live and I can find other accounts with the same Id (Id in format "_skh1kj12hk1j2h3k12j3hk12jh3".
So, now, I can say for sure, that this id is not unique.
Am I doing something wrong?
Here is the code I am using:
var defaultContainer = CKContainer.DefaultContainer;
var userRecordId = await defaultContainer.FetchUserRecordIdAsync();
return userRecordId.RecordName;