Closed kmccmk9 closed 5 years ago
@trinqk thoughts?
If the contact was created by the Native Android contacts app, it seems the update query only works if the field already exists.
@kmccmk9 Your code seems to be working on my end too. Could you create a PR?
Hello,
I've encountered this problem, where if I have a contact Jane Doe, who does not have an address (for example). I update their Contact object to include an address and I call the updateContact method. There are no errors but if I go and check the contact, they will not have an address. I actually forked this repo to begin working on this problem. What I've descovered is using the update query only works if there is already an existing field for this contact. So to make it easier on developers I just do a drop and re-insert of most of the data. See my code thus far here (so far working): https://github.com/kmccmk9/flutter_contacts/blob/updateContact/android/src/main/java/flutter/plugins/contactsservice/contactsservice/ContactsServicePlugin.java