NeckbreakerPascal opened a new issue #546: iOS13 - Select Video / getPicture
URL: https://github.com/apache/cordova-plugin-camera/issues/546
 
 
   # Bug Report
   
   ## Problem
   on iOS 13 I am not longer able to select a video on device. SourceType is 
`PHOTOLIBRARY`
   
   ### What is expected to happen?
   The Plugin takes a pictures from the lib and returns it.
   
   
   ### What does actually happen?
   - the getPicture-Function return the error: `No Image Selected`
   
   
   ## Information
   It could be a problem in the "/cordova-plugin-camera/src/ios/CDVCamera.m".
   
   
   ### Command or Code
   Found this in the "CVDCamera.m", but it is in the block where 
_imagePickerControllerDidCancel_ but I did not cancel. So not totally sure if 
that is the right place to look for this problem.
   
   ```
       dispatch_block_t invoke = ^ (void) {
           CDVPluginResult* result;
           if (picker.sourceType == UIImagePickerControllerSourceTypeCamera && 
[AVCaptureDevice authorizationStatusForMediaType:AVMediaTypeVideo] != 
ALAuthorizationStatusAuthorized) {
               result = [CDVPluginResult 
resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"has no access to 
camera"];
           } else if (picker.sourceType != 
UIImagePickerControllerSourceTypeCamera && ! IsAtLeastiOSVersion(@"11.0") && 
[ALAssetsLibrary authorizationStatus] != ALAuthorizationStatusAuthorized) {
               result = [CDVPluginResult 
resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"has no access to 
assets"];
           } else {
               result = [CDVPluginResult 
resultWithStatus:CDVCommandStatus_ERROR messageAsString:@"No Image Selected"];
           }
   ```
   
   ### Environment, Platform, Device
   iPhone 7, iOS 13.3
   
   ### Version information
   Ionic:
   
      Ionic CLI          : 5.4.2 (/usr/local/lib/node_modules/ionic)
      Ionic Framework    : ionic-angular 3.9.2
      @ionic/app-scripts : 3.1.8
   
   Cordova:
   
      Cordova CLI       : 9.0.0 ([email protected])
      Cordova Platforms : android 8.1.0, ios 5.1.1
      Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, 
cordova-plugin-ionic-webview 4.1.3, (and 17 other plugins)
   
   Utility:
   
      cordova-res : 0.6.0 (update available: 0.8.1)
      native-run  : 0.2.8 (update available: 0.3.0)
   
   System:
   
      ios-deploy : 1.9.2
      ios-sim    : 8.0.2
      NodeJS     : v8.11.3 (/usr/local/bin/node)
      npm        : 5.6.0
      OS         : macOS Mojave
      Xcode      : Xcode 11.3 Build version 11C29
   
   
   
   
   ## 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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to