Seach

Showing posts with label Apache Cordova. Show all posts
Showing posts with label Apache Cordova. Show all posts

how to configure and use a plugin cordova

or you can search the plugin in the 
<plugin name="cordova-plugin-contacts"            source="npm" spec="~2.0.1" />
Add this to your config.xml
document.addEventListener("deviceready", onDeviceReady, false);
    function onDeviceReady() {
        var myContact = navigator.contacts.create({"displayName": "Test User"});
        myContact.note = "This contact has a note.";
        console.log("The contact, " + myContact.displayName + ", note: " + myContact.note);
    }
This will create a contact test user in your mobile phone