suzukieng commented on issue #373:
URL: 
https://github.com/apache/cordova-plugin-media/issues/373#issuecomment-1591080335

   @mirko77 correct, `READ_MEDIA_AUDIO` was introduced in API level 33+. An app 
that previously used `READ_EXTERNAL_STORAGE` should now request `READ_MEDIA_*`.
   
   So something like this is needed:
   ```
   String READ_IMAGES_PERMISSION =
               Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU ?
                       Manifest.permission.READ_MEDIA_IMAGES : 
Manifest.permission.READ_EXTERNAL_STORAGE;
   ```
   


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

Reply via email to