You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2018/11/26 21:11:09 UTC

[GitHub] sakujo edited a comment on issue #371: Crashing in iOS 12 with PictureSourceType.CAMERA

sakujo edited a comment on issue #371: Crashing in iOS 12 with PictureSourceType.CAMERA
URL: https://github.com/apache/cordova-plugin-camera/issues/371#issuecomment-441755248
 
 
   Same here.  I take a pic and after then i get to edit section and after hitting done the app crashes without any error messages / popups. I tested via ionic serve -c.
   
   `$scope.camera = function() {
   
           $ionicPlatform.ready(function () {
   
               $scope.photo = "";
   
               var options = {
                   quality: 100,
                   destinationType: Camera.DestinationType.DATA_URL,
                   sourceType: Camera.PictureSourceType.CAMERA,
                   allowEdit: true,
                   encodingType: Camera.EncodingType.JPEGs,
                   saveToPhotoAlbum: true
               };
   
               if(ionic.Platform.isIOS()) {
                   options.popoverOptions = CameraPopoverOption;
                   options.correctOrientation = true;
               }
   
               $cordovaCamera.getPicture(options).then(function(imageData) {
                   $scope.photo = "data:image/jpeg;base64," + imageData;
               }, function(err) {
                   // error
               });
           })
   
       };`
   
   iOS 12.1 + 12.0.1
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services

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