You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/04/29 20:29:59 UTC

[GitHub] [cordova-plugin-camera] luisd-morales opened a new issue #725: crhasing application when take a photo in google photos

luisd-morales opened a new issue #725:
URL: https://github.com/apache/cordova-plugin-camera/issues/725


   # Bug Report
   crhasing application when take a photo in google photos
   
   ## Problem
   When activating the camera and taking the photo, it automatically saves the photo within Google Photos and my application crashes it
   
   ### What is expected to happen?
   I should not save the photo since I have blocked the option through the code
   
   ### What does actually happen?
   
   save the photo in automatic and close my app
   
   
   ## Information
   I have seen that this error only occurs on Motorola devices such as G7 play or G8 power lite... 
   
   These phones are quite robust and it is not a problem of the life cycle of the equipment ... and it does not have its own roll of photos ... it has automatically configured that when taking a photograph it saves in Google photos.
   
   When downloading a camera that is not the native of the phone, the application works correctly
   
   ### Command or Code
   `function setOptions(srcType) {
       var options = {
           // Some common settings are 20, 50, and 100
           quality: 50,
           destinationType: Camera.DestinationType.FILE_URI,
           // In this app, dynamically set the picture source, Camera or photo gallery
           sourceType: srcType,
           encodingType: Camera.EncodingType.JPEG,
           mediaType: Camera.MediaType.PICTURE,
           allowEdit: true,
           correctOrientation: true
       }
       return options;
   }`
   
   `function openCamera(selection) {
   
       var srcType = Camera.PictureSourceType.CAMERA;
       var options = setOptions(srcType);
       var func = createNewFileEntry;
   
       navigator.camera.getPicture(function cameraSuccess(imageUri) {
   
           displayImage(imageUri);
           // You may choose to copy the picture, save it somewhere, or upload.
           func(imageUri);
   
       }, function cameraError(error) {
           console.debug("Unable to obtain picture: " + error, "app");
   
       }, options);
   }`
   
   `function displayImage(imgUri) {
       var elem = document.getElementById('imageFile');
       elem.src = imgUri;
   }`
   
   ### Environment, Platform, Device
   Android
   
   
   
   ### Version information
   Android 10,
   Cordova 9.0.0
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] PieterVanPoyer commented on issue #725: crhasing application when take a photo in google photos

Posted by GitBox <gi...@apache.org>.
PieterVanPoyer commented on issue #725:
URL: https://github.com/apache/cordova-plugin-camera/issues/725#issuecomment-843517147


   Can you try without the allowEdit: true option?
   
   @see https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-camera/index.html#android-quirks 


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] luisd-morales commented on issue #725: crhasing application when take a photo in google photos

Posted by GitBox <gi...@apache.org>.
luisd-morales commented on issue #725:
URL: https://github.com/apache/cordova-plugin-camera/issues/725#issuecomment-846637412


   Yes, in fact I have tried putting all the available options ... I have also tried removing all the options ... It works well in all models except that phone, I am 100% sure that it is a plugin problem with the phone model since I have also changed different versions of android to the phone


-- 
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org