-
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
[iOS] Unable to delete contact #87
Comments
This may be related to #77 |
I'm hitting the same thing in a JavaScript project tns info |
I did some debugging, and the code at issue is contact-model.ios.js line 251:
foundContacts is null, and so
It's not clear yet why [edit] I've been investigating further, as I really need this to work. I tried replacing If anyone knows how to catch the error data that would certainly help. [edit 2] This post looks pertinent. I'll investigate later today. [edit 3] Here's what's changed: com.apple.developer.contacts.notes Apple has made access to the notes field more restricted. If I comment-out "note" from keysToFetch, the contact.delete() works as expected. Next I'll figure out how I want to proceed with this. I don't really need the notes field, and that may mean I'll locally modify my own copy of the plugin to remove it from keysToFetch. [edit 4] This issue is a dupe of #89, and fixed with pull request #90. [edit 5] Correction: while issue #89 does address a similar issue, pr #90 does not include changes to contact-model.ios.js, and thus does not fix this particular issue. To bypass the issue it is sufficient to comment out line 244 ( |
I do this:
And I get this error:
ERROR Error: Uncaught (in promise): TypeError: null is not an object (evaluating 'foundContacts.count')
Full output:
The text was updated successfully, but these errors were encountered: