gpspremsun opened a new issue, #807:
URL: https://github.com/apache/cordova-plugin-camera/issues/807

   I just found that getPicture did not work on my Samsung Tab A7 Lite but all 
other devices I have (both android/ios on variety os version)
   
   Normally I got base64 string were returned to my application after I take a 
photo but for my new tested Samsung Tab A7 Lite device I got an error like "No 
Image Selected" immediately after camera was opened
   
   I notice that after getPicture was called normally my application would open 
camera function under itself but on my new tested Samsung Tab A7 Lite seem it 
call Samsung stock Camera app separately instead.
   
   currently I user cordova-plugin-camera 4.1.0 under Cordova 9.0 for my 
Android development and below is code I have in my application...
   
   function onCamSuccessBase64(imageData) {
       var i = new Image();
       i.onload = function () {
           intFileBase64Width = parseInt(i.width);
           intFileBase64Height = parseInt(i.height);
           strFileBase64 = imageData;
           showConfirm();
       };
       i.src = "data:image/jpeg;base64," + imageData;
   }
   
   function onCamFail(message) {
       alert("Failed because: " + message);
   }
   
   function photo_take() {
       navigator.camera.getPicture(onCamSuccessBase64, onCamFail, {
           quality: 30, targetWidth: 864, targetHeight: 1536,
           allowEdit: false, correctOrientation: true, destinationType: 
Camera.DestinationType.DATA_URL
       });
   }
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to