-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to getAllContacts on iOS 13 #79
Comments
@firescript do you know what could cause this issue, and if there's a workaround for iOS 13? |
ios 13 has introduced new entitlement for accessing contacts, see details at https://stackoverflow.com/questions/57442114/ios-13-cncontacts-no-longer-working-to-retrieve-all-contacts |
@liuy97 you are absolutely right. Removing request for notes solves the issue. |
@mrpaaske UPD: I got it, in getAllContacts we should pass array of fields. And don't ask for notes field. Example: |
@xaosaki that's exactly it 👍 |
It seems that something is broken when using this library on iOS 13. The permission request pops up, and there are no error messages. But the response is always an empty list.
Same code on iOS 12 or below works fine.
To reproduce
add to Info.plist:
add to items.component.ts
Open multiple emulators from iOS 10 to iOS 13.
See that
contacts.data.length
is 0 for iOS 13.The text was updated successfully, but these errors were encountered: