Get full detail of any mobile number in cordova.
document.addEventListener("deviceready", hello, false);
function hello(){
navigator.contacts.pickContact(function(contact){
console.log('The following contact has been selected:' + JSON.stringify(contact));
document.getElementById("number").innerHTML = 'The following contact has been selected:' + JSON.stringify(contact);
},function(err){
console.log('Error: ' + err);
});
}
Comments
Post a Comment