Error using navigator.device.capture
I'm trying to implement use the Capture object to allow user to record audio in the app
I created a page with a button and in the click event I put the following javascript action: 
 ###################################################### 
 function captureSuccess(mediaFiles) { 
     alert('OK'); 
 }
function captureError(error) { 
    var msg = 'An error occurred during capture: ' + error.code; 
    navigator.notification.alert(msg, null, 'Uh oh!'); 
 }
function captureAudio() { 
    navigator.device.capture.captureAudio(captureSuccess, captureError, {limit: 2}); 
 }
captureAudio(); 
 ######################################################
When I click the button, running on the device, the following message is being shown: An error occurred during capture: 3
****Additional information
- In the Cordova Plugins tab of App Settings all the options are check 
- In the External Resources tab of App Settings the combo Libraries Version is v3.1 
- In the Android Permissions tab of the App Settings options RECORD_AUDIO and WRITE_EXTERNAL_STORAGE are checked - I created the following function in a js file - ################################## 
 function onDeviceReady() {
 console.log(navigator.device.capture);
 }
 ##################################- And put the following code in the LOAD event of the page that contains the button - document.addEventListener("deviceready", onDeviceReady, false); - What am I doing wrong? - Thanks in advance...