View
 

iPhone: Choose a contact

Page history last edited by Becky 1 year ago
FYI - these Contact examples are for 0.9.3 and before.   Please see http://docs.phonegap.com/phonegap_contacts_contacts.md.html for 0.9.4 and beyond.
function chooseContact(allowsEditing) {
    var options = {
        allowsEditing: allowsEditing
    };
    navigator.contacts.chooseContact(chooseContact_Return, options);
}
function chooseContact_Return(contact) {
    if (contact) {
        navigator.notification.alert(contact.firstName + " " + contact.lastName, "Contact Returned", "Dismiss");
    }