My app is working good everywhere, except on iOS13 where the contacts can’t be fetched :
Error: Error while fetching contacts | Description: The operation couldn’t be completed. (CNErrorDomain error 102.), Reason: (null), Options: (null), Suggestion: (null)
at createErrorFromErrorData (NativeModules.js:155)
at NativeModules.js:104
at MessageQueue.__invokeCallback (MessageQueue.js:414)
at MessageQueue.js:127
at MessageQueue.__guard (MessageQueue.js:314)
at MessageQueue.invokeCallbackAndReturnFlushedQueue (MessageQueue.js:126)
at RNDebuggerWorker.js:2
Yes, you need to specify the fields you want to fetch, because starting from iOS 13 you need a specific authorization to fetch the notes field, and if you don’t have it while you fetch all the fields, it crashes.
Hi. I see the Breaking Changes section of the SDK 35 release notes say that the note field has been “removed” because of this extra entitlement that is required in iOS 13, so it seems that it should not be necessary to specify the fields. It might not be a bad idea to specify the fields you need anyway, though:
Contacts : removed the note field on iOS as this now requires a separate entitlement in iOS 13. (Related PR.)