Scroll to top

How to get full detail of any mobile number in cordova?

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);
    });
}

Leave a Reply

Your email address will not be published. Required fields are marked *