Fantikor commented on issue #866:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/866#issuecomment-2210649886

   Hey, I just stumbled upon this article: 
   
https://medium.com/androiddevelopers/permissionless-is-the-future-of-storage-on-android-3fbceeb3d70a
   
   Interesting fragment:
   
   > ACTION_GET_CONTENT behaviour change
   As we just saw, adopting the Android photo picker requires just a few lines 
of code. While we want all apps to use it, migration might take some time in 
your app. That’s why we are bringing the benefits of Android photo picker to 
existing apps using ACTION_GET_CONTENT by switching the system file picker for 
the photo picker under the hood without any code change required in the 
upcoming months. If you launch the ACTION_GET_CONTENT intent with an image 
and/or video mime type filter, the photo picker will be shown instead of the 
document picker. For applications, the expected intent results will be the 
same: a list of Uri.
   
   This plugin is indeed using ACTION_GET_CONTENT intent, so this new photo 
picker is actually used under the hood. I modified this plugin and removed the 
code that requests permissions (for READ_MEDIA_IMAGES and READ_MEDIA_VIDEO), 
like @fywstar did. 
   Only READ_EXTERNAL_STORAGE and WRITE_EXTERNAL_STORAGE remained checked for 
API <= 30.
   Works for me for Androids: 14, 12 and 8.
   
   Cheers


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