GitHub user breautek added a comment to the discussion: Request Permission not Working With Android 15 and Security Uppdate May 2025
Does the plugin handle declaring the permissions in the manifest? If not you may need to manually add them using `<config-file>` or `<edit-config>` directives. If they aren't declared in `AndroidManifest.xml` then you wouldn't be able to request them during the runtime. Recent Apache changes may have also caused the problem, as the permissions may have been declared before and is no longer by the plugin(s) you might be using including: - cordova-plugin-camera - cordova-plugin-media-capture Google requires justification for using the new `READ_MEDIA` permissions (`READ_MEDIA_AUDIO`, `READ_MEDIA_VIDEO`, and `READ_MEDIA_IMAGES`. They are effectively reserved for apps that requires permanent and broad access to media. (Prime example of an app would be a Gallery or a Music Player app). If you're app is wanting access just to pick a single resource (e.g. for a profile picture or something), Google will likely deny the justification. So Apache revised the plugin codebases and reworked things so that they didn't require the need for `READ_MEDIA_*` permissions. For media capture, that means removing the `READ_MEDIA` as they did nothing that actually warrants using them to begin with. For camera, `READ_MEDIA_IMAGES`/`READ_MEDIA_VIDEO` was necessary if you wanted to allow picking from user gallery. This is primarily caused by the camera plugin following old practices using the file APIs directly to access the content. It has been refactored to use Android's MediaStore APIs which allows for the app to be granted temporarily access to a specific resource file that the user has chosen. `READ_MEDIA_*` permissions are not necessary, but it does mean the returned URI is short-lived and not permanently accessible. The blog posts will have more information: - https://cordova.apache.org/announcements/2025/02/26/cordova-plugin-media-capture-6.0.0.html - https://cordova.apache.org/announcements/2024/11/02/camera-plugin-camera-8.0.0.html So it might be worth revising your project to determine if `READ_MEDIA_*` permissions that you're trying to use is actually necessary. GitHub link: https://github.com/apache/cordova/discussions/542#discussioncomment-13170216 ---- This is an automatically sent email for issues@cordova.apache.org. To unsubscribe, please send an email to: issues-unsubscr...@cordova.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org