cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
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:

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message