loppear opened a new issue, #922: URL: https://github.com/apache/cordova-plugin-camera/issues/922
# Bug Report ## Problem Getting error 20 for onError message when using `sourceType: Camera.PictureSourceType.PHOTOLIBRARY`. This is after upgrading to 8.0.0 to address removing `READ_MEDIA` permissions. `getPicture` for Camera works fine now. ### What is expected to happen? The media picker intent should happen. ### What does actually happen? immediately errors with "20" as the only detail. ## Information <!-- Include all relevant information that might help understand and reproduce the problem --> JS code is unchanged from 7.0.0 version and the parallel path for Camera works fine. Happy to debug further to track this down. Whether using the `Intent.ACTION_PICK` branch (with `allowEdit: true`) or `Intent.ACTION_GET_CONTENT` this fails immediately for me. Comparing my bundle permissions before and after, it is no longer declaring any `MEDIA` or `STORAGE` related permissions, which seems right but idk. This log message prior to my logging of the "20" error seems relevant? ``` ...android.permissioncontroller E None of [android.permission.READ_MEDIA_IMAGES, android.permission.READ_MEDIA_VISUAL_USER_SELECTED] in {} ``` ### Command or Code <!-- What command or code is needed to reproduce the problem? --> ``` navigator.camera.getPicture(imageUpload, imageUploadFailed, { quality: 100, sourceType: Camera.PictureSourceType.PHOTOLIBRARY, destinationType: Camera.DestinationType.DATA_URL }); ``` ### Environment, Platform, Device <!-- In what environment, on what platform or on which device are you experiencing the issue? --> Debugging in Android Studio emulator (API 34) and Pixel 7. ### 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. --> cordova-android 13.0.0 cordova-plugin-camera 8.0.0 (is the only plugin) Android Studio 2024.1.1 ## 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. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org