android - Failed because: Invalid action error in Cordova app -


i encountering following error message when capturing photo using camera plugin cordova:

"failed because: invalid action"

i have tried debugging error not sure causing , running out of ideas!

the tablet device testing on running android 4.4.4 (nexus 7).

the strange thing not error when choosing photo gallery, when using device camera. gut feeling in recent update has changed.

here code using camera functionality:

/**      * take picture camera      */     capturephoto: function() {         navigator.camera.getpicture(phonegap.onphotodatasuccess, phonegap.onfail, {             quality: 50,             targetwidth: parsefloat($(window).outerwidth() * 1.25),             targetheight: parsefloat($(window).outerheight() * 1.25),             savetophotoalbum: true,             correctorientation: true,             allowedit: true,             sourcetype: camera.picturesourcetype.camera,             encodingtype: camera.encodingtype.jpeg,             destinationtype: camera.destinationtype.data_url         });          navigator.camera.cleanup(onsuccess, onfail);          function onsuccess() {             console.log("camera cleanup success.");         }          function onfail(message) {             alert('failed because: ' + message);         }     }, 

many in advance! ben

the issue appeared navigator.camera.cleanup function.

i have removed , camera working expected.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -