cyril23 commented on issue #826: URL: https://github.com/apache/cordova-plugin-camera/issues/826#issuecomment-1599057802
> Thx @cyril23 🔥 🙌 > > It also works on my Samsung S20, with Cordova 12, Android 13 API 33. glad to hear, but the https://github.com/jalios/cordova-plugin-camera/ fork still has some problems on **an old X10302 tablet running Android 7.0.0.** On that Android 7 device it is **not the error 20** though:  - so on this Android 7 device I get an error `Permission Denial: reading com.android.providers.media.MediaProvider uri content://media/external/images/media from pid=7790, uid=10046 requires android.permission.READ_EXTERNAL_STORAGE, or grantUriPermission()` - In order to take pictures on the Android 7 within my app, I **needed to manually set the storage permission** within Settings -> Apps -> (my app) -> permissions. - The "camera" setting has been requested successfully by the plugin, but the "storage" permission apparently hasn't been requested correctly by the plugin, so I had to allow it myself manually. (This is probably caused because my app crashed when starting the camera for the first time and requesting permissions for the first time. During the crash apparently only the "camera" permission has been set successfully - and the "storage" permission not.) - On the [Apache 6.0.0 Version](https://github.com/apache/cordova-plugin-camera/releases/tag/6.0.0) the plugin requests two permissions, both camera and storage permissions, and therefore the Apache 6.0.0 works without a problem on this old Android 7.0.0 device. But the Apache 6.0.0 version of course has the error 20 problem on Android 13 phones, so there is that. - Anyhow: If the user is lucky and has already allowed the external storage successfully (e.g. via an old app using the Apache 6.0.0 version), and only gets an update of the app via Play Store, the camera can be used without a problem. The same storage permission problem exists on Android 8.1.0 too, on an old Nexus 5X (LG H791). In all cases, no error "20" though. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
