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?