cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cordova-plugin-camera] HarelM commented on issue #611: Cannot use saveToPhotoAlbum: true on Android 10
Date Wed, 28 Oct 2020 21:33:21 GMT

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


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


Mime
View raw message