AleFons opened a new issue #611:
URL: https://github.com/apache/cordova-plugin-camera/issues/611


   # Bug Report
   
   ## Problem
   
   ### What is expected to happen?
   
   Using `saveToPhotoAlbum: true` should allow the user to take a picture and 
save a backup to the phone's gallery.
   
   ### What does actually happen?
   
   The plugin instead throws an error on Android 10.
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   Setting the option to `false` avoids the problem, but then no backup is made.
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   I use these options for `Camera.getPicture()`:
   
   `annex_options: CameraOptions = {
       destinationType: this.Camera.DestinationType.FILE_URI,
       sourceType: this.Camera.PictureSourceType.PHOTOLIBRARY,
       correctOrientation: false,
       saveToPhotoAlbum: false
     }`
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   
   Android 10, has happened on multiple devices.
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   Ionic:
   
      ionic (Ionic CLI)  : 4.6.0
      Ionic Framework    : ionic-angular 3.9.6
      @ionic/app-scripts : 3.2.4
   
   Cordova:
   
      cordova (Cordova CLI) : 9.0.0 ([email protected])
      Cordova Platforms     : android 8.1.0, ios 5.0.0
      Cordova Plugins       : cordova-plugin-ionic-keyboard 2.0.5, 
cordova-plugin-ionic-webview 2.2.0, (and 18 other plugins)
   
   System:
   
      Android SDK Tools : 26.1.1
      NodeJS            : v12.16.3
      npm               : 6.14.4
      OS                : Linux 4.15
   
   
   ## 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]



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

Reply via email to