Take the 2-minute tour ×  I have an issue with Phonegap
contacts.save. When I create a contact works perfectly in iOS
and Android, but, when I try to update a contact, there are
duplicates fileds as phoneNumbers, emails, urls, ims, addresses,
I'm using Phonegap 2.1 and Xcode 4.5.1.  Someone could help me
to solve this issue?. I appreciate your time. Thanks.  In
resume:    • navigator.contacts.create(); works correctly.   •
when I try to update a contact, save correctly, but, add phone
numbers instead update.  My code is:  var options = new
ContactFindOptions(); options.filter = 20;  //just it's an
example. Looking for id 20. var fields = ['id']; var contact;
if (contacts.length==0)         contact =
navigator.contacts.create();        contact = contacts[0];
var tContactName = new ContactName();     tContactName.givenName
= 'Name';     tContactName.LastName = 'LastName';
contact.name = tContactName;          var tPhoneNumbers[2];
tPhoneNumbers[0] = new ContactField('work', '123456789012',tr