Reputation: 506
Here's the goal:
Currently, I've followed through the following steps, but discoverAllContactUserInfosWithCompletionHandler
returns empty.
I'm stumped. I've:
accountStatusWithCompletionHandler
. I am receiving accountStatus == .Available
statusForApplicationPermission(CKApplicationPermissions.PermissionUserDiscoverability)
. I am receiving permissionStatus == .Granted
discoverAllContactUserInfosWithCompletionHandler
. In the completion block, I receive no error and an empty users array. I've also tried using discoverUserInfoWithEmailAddress
to pull a user that I've registered with on a separate device. This returns a nil user object, but no error.I'm not sure what I'm missing here. Any advice/troubleshooting tips would be much appreciated.
Upvotes: 0
Views: 753
Reputation: 13343
Check out this answer - CKDiscoverAllContactsOperation not fetching contacts
The other users must enable Discoverability on their iCloud account with your app AND use the same email address as stored in your Contacts.
Upvotes: 0