Unable to call cordova.exe in windows phone 8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Divyaravind
    New Member
    • Jan 2016
    • 1

    Unable to call cordova.exe in windows phone 8

    Hi,
    I wrote the Cordova.exe code in a function hello(). The control is going inside the function but unable to call the cordova.exe.

    Code:
     function openContact(successCallback, errorCallback,options){
        alert('contacts...');
       cordova.exec(sayHelloSuccess, sayHelloFailure, "Contacts", "pickContact",[ options ]);
    	
    }
    	function sayHelloSuccess(data) {
    	    alert('sucess:'+data);
    	    $('#NameInput').value(data);
    	    $('#abc').text(data);
    	}
    
    	function sayHelloFailure(data) {
    	    alert('error' + JSON.stringify(data));
    The alert is coming but the success alert/error alert is not coming after that.

    Have implemented the contacts.cs and config.xml according to the cordova functionality.

    Please help if any other settings are missed???


    Thanks,
    Divyaravind.
    Attached Files
    Last edited by zmbd; Jan 10 '16, 11:24 PM. Reason: [z{Please use the [CODE/] tool to format script and tables}{Unrequested attachments are often not viewed by our experts.}]
Working...