phonegap

 

iPhone: Remove a Contact

Page history last edited by Shazron Abdullah 3 mos ago


function removeContact() {
    navigator.ContactManager.chooseContact(removeContact_Return, null);
}
function removeContact_Return(contact) {
    if (contact) {
        navigator.ContactManager.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.