-
Notifications
You must be signed in to change notification settings - Fork 141
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
PlatformException on contact update #95
Comments
Another form of the error: |
The only similar issue i could find is here: https://stackoverflow.com/questions/33033163/cncontactstore-executesaverequest-failing-with-cnerrordomain-error-2 It recommends not setting the fields as empty array unless the contact has objects for that certain attribute. So to follow up on that, I would have 2 questions:
This:
Instead of this:
|
Hi @yassinsameh, thanks for reporting and looking into this. This suggestion makes a lot of sense. Did it fix your issue? If so, I'll add it to the next version. |
Hi @joachim-quis , after the changes outlined i no longer get the "CNErrorDomain error 2" , I still do get the "Violated constraints error" Which i believe is caused by Read-Only contacts attempting to be updated, is there a way we can add that boolean field in the Flutter Contact so developers can be aware of this to not attempt updating? |
@joachim-quis following up on this, any idea how we can detect if it is read only and add that boolean to the Contact object? |
Generally the update method is working correctly for most users, when viewing crashlytics logs however i find this error coming up for more than one user.
Unable to have any more information, could you please provide any insight on how to get more information or the cause of this? @joachimvalente @joachim-quis
Error:
PlatformException(unknown error, unknown error, The operation couldn’t be completed. (CNErrorDomain error 2.), null). Error thrown null.
Stacktrace:
flutter_contacts: 1.1.5+1
The text was updated successfully, but these errors were encountered: