breautek commented on issue #920:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/920#issuecomment-2541440116

   Since v8 things were changed and `WRITE_EXTERNAL_STORAGE` was removed 
because by default it's not needed, even for pre API 29 devices.
   
   You're right though in that shared storage (aka external storage) requires 
it for API 28 and lower devices. If you're using the `saveToPhotoAlbum` option, 
or you're simply trying to move/copy the file into external storage partition 
then the permission is required.
   
   You can add the following in your `config.xml`, best to be added inside a 
`<platform name="android">` tag:
   ```xml
   <config-file target="AndroidManifest.xml" parent="/*" 
xmlns:android="http://schemas.android.com/apk/res/android";>
       <uses-permission 
android:name="android.permission.WRITE_EXTERNAL_STORAGE" 
android:maxSdkVersion="28" />
   </config-file>
   ```
   
   You may want to check to see if another plugin is already inserting the 
permission, doing so will cause conflicts.
   
   This is noted in our 
[docs](https://github.com/apache/cordova-plugin-camera?tab=readme-ov-file#cameragetpicturesuccesscallback-errorcallback-options)
 and in the [blog 
post](https://cordova.apache.org/announcements/2024/11/02/camera-plugin-camera-8.0.0.html


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

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

Reply via email to