Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 682744e7d3

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.


This plugin is a different philosophy to how contacts can work with PhoneGap Android. Rather than pulling in the contacts into HTML, this plugin allows you to leave the PhoneGap webview and enter into a native contact picker. Once the user has selected a contact, they will be sent back into the PhoneGap webview with the name of the contact available.

How to use:

Usage:, failure);

Success returns an object with the name and the phone of the contact selected.


	document.querySelector("#contact-name-to-native").addEventListener("touchstart", function() {
	    	function(contact) {
	    		document.getElementById("contact-name-from-native").value =;
	    		document.getElementById("contact-phone").value =;
	    	function(fail) {
	    		alert("We were unable to get the contact you selected.");
    }, false);

For the current files to work, you'll need to create a package (folders) called com.rearden. You can change this to whatever you like, just update the ContactView.js and

ContactView.js should go in the asset folder and should be referenced in your index.html file.


It only grabs the Name and Phone number, but not any other information.
It only works with Android API 2.0 and above. Future versions will include older APIs.
Something went wrong with that request. Please try again.