Skip to content

Instantly share code, notes, and snippets.

@inancsevinc
Created June 10, 2012 11:52
Show Gist options
  • Save inancsevinc/2905129 to your computer and use it in GitHub Desktop.
Save inancsevinc/2905129 to your computer and use it in GitHub Desktop.
Cordova contact find example
navigator.contacts.find(['*'], function(contacts) {
alert("number of contacts: " + contacts.length);
$.each(contacts, function(i, contact) {
alert('contact object: ' + JSON.stringify(contact));
});
}, function(contactError) {
alert(contactError);
}, {"multiple": true});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment