1

Having trouble with CloudKit's discoverAllContactUserInfosWithCompletionHandler not returning anything in the discoveredUserInfo array. I have a test app on two phones. One person can see the other (discoverAllContactUserInfosWithCompletionHandler returns the 2nd user's info via lookup) but not vice-versa. I checked all the settings on both phones, including iCloud Drive->Look Me Up By Email, the correct email addresses in the contacts list, iCloud drive is turned on for the app. Everything.

I noticed that even on the phone that can see the 2nd user, sometimes the discoveredUserInfo array is blank and sometimes it returns the 2nd user, seemingly at random.

Anyone else seeing this kind of behaviour?

nh32rg
  • 1,462
  • 13
  • 15

1 Answers1

0

It looks like Apple only allows e certain amount of requests per period. You would then expect a CKError. I created a bug report with apple for this (ID = 19712839) I would suggest that you do the same.

Edwin Vermeer
  • 13,017
  • 2
  • 34
  • 58
  • Hmm. Never get an error in the error parameter, just an empty array. I figured the intermittent blanks was some kind of optimization, but the one phone that never gets any is annoying. – nh32rg Feb 04 '15 at 14:41
  • My bug report today got this status: Duplicate of 20143672 (Open) – Edwin Vermeer Apr 21 '15 at 19:39