GitHub user breautek added a comment to the discussion: Android photo picker 
Cordova plugin, or alternatives to cordova-plugin-camera for photo picking?

> I read on the cordova-plugin-camera issue tracker that the READ_MEDIA_IMAGES 
> and READ_MEDIA_VIDEO permissions have been dropped in the newest version 
> (8.0.0) to make it compatible with Google Play. I tried it, but it still asks 
> for the permission and uses the previous photo picker rather than Android 
> Photo Picker. Am I doing something wrong?

Considering that v8 did completely drop those permissions, either you're not 
actually running the latest plugin code, or you have another plugin inserting 
those permission declarations and requesting them.

I don't know how you've updated your plugin(s) but one common gotcha is they 
have to be removed and re-added. Simply npm installing the new plugin is not 
enough to get the new version.

```
cordova plugin remove cordova-plugin-camera
cordova plugin add cordova-plugin-camera@8
```

On the photo picker, the camera plugin doesn't use it because it uses the 
camera intent, to open the camera app. Most camera applications will allow you 
to pick from a gallery as well (in which they'll do via the photo picker, or 
may have their own custom UI if the camera app itself has permissions to manage 
media files).

After confirming that v8 is installed, I'd run `cordova preprae android` to 
ensure that the native android project is completely up to date, then inspect 
`/platforms/android/app/src/main/AndroidManifest.xml`. It should **NOT** have 
`READ_MEDIA_IMAGES` or any other `READ_MEDIA_*` permissions declared. If you 
do, then scan your `/plugins` folder for references of `READ_MEDIA` to try to 
determine where those permissions are coming from.

GitHub link: 
https://github.com/apache/cordova/discussions/561#discussioncomment-13923619

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

Reply via email to