View
 

iPhone: Remove a Contact

Page history last edited by Jesse MacFadyen 6 mos ago
function removeContact() {
navigator.contacts.chooseContact(removeContact_Return, null);
}
function removeContact_Return(contact) {
if (contact) {
navigator.contacts.removeContact(contact.recordID, removeContact_Success, null);
}
}
function removeContact_Success(contact) {
if (contact) {
navigator.notification.alert(contact.firstName + " " + contact.lastName, "Contact Removed", "Dismiss");
}
}

Comments (0)

You don't have permission to comment on this page.