HarelM edited a comment on issue #611:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/611#issuecomment-718221576


   I'm using the latest version of this plugin from master after the above 
merge but it seems that it doesn't work with android 10, even if I set 
`requestLegacyExternalStorage` to true (using the latest `cordova-file-plugin` 
adds this to the manifest).
   When I'm trying to open the camera to take a picture I get to the following 
code:
   ```java
   if (takePicturePermission && saveAlbumPermission) {
               takePicture(returnType, encodingType);
           } else if (saveAlbumPermission && !takePicturePermission) {
               PermissionHelper.requestPermission(this, TAKE_PIC_SEC, 
Manifest.permission.CAMERA);
           } else if (!saveAlbumPermission && takePicturePermission) {
   /// ---> I'm getting here which doesn't do anything in android 10...
               PermissionHelper.requestPermissions(this, TAKE_PIC_SEC,
                       new String[]{Manifest.permission.READ_EXTERNAL_STORAGE, 
Manifest.permission.WRITE_EXTERNAL_STORAGE});
           } else {
               PermissionHelper.requestPermissions(this, TAKE_PIC_SEC, 
permissions);
           }
   ```
   Has anyone else got to this point? Am I missing something? Should I just 
remove the `saveToPhoto` album?
   Any help would be appreciated.
   Cordova 10, cordova-android 9.0, of course.


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