erisu commented on issue #816:
URL: 
https://github.com/apache/cordova-plugin-camera/issues/816#issuecomment-1311198871

   It may not be related, but I think the reason why there are two plugins 
instead of combining the functionality into one plugin is because of 
permissions.
   
   The camera plugin only uses this permission:
   * `android.permission.WRITE_EXTERNAL_STORAGE`
   
   The media capture plugin uses these permissions:
   * `android.permission.RECORD_AUDIO`
   * `android.permission.READ_EXTERNAL_STORAGE`
   * `android.permission.WRITE_EXTERNAL_STORAGE`
   
   Ignoring `READ_EXTERNAL_STORAGE` & `WRITE_EXTERNAL_STORAGE`, I beleive the 
main difference was `RECORD_AUDIO`.
   
   Generally, I think it is not recommended to request for permissions that are 
not needed. For example, a QR code app might need access to the camera, but it 
should not need permissions to record audio. End-users may be concered if they 
see the app requires recording audio when the believe it is privacy evasive.
   
   It is true that there is an overlap between camera and media-capture plugin.
   
   Some extra notes: `READ_EXTERNAL_STORAGE` is no longer used in API 33.
   
   > If your app accesses other apps' media files, request one or more of these 
permissions instead: 
[READ_MEDIA_IMAGES](https://developer.android.com/reference/android/Manifest.permission#READ_MEDIA_IMAGES),
 
[READ_MEDIA_VIDEO](https://developer.android.com/reference/android/Manifest.permission#READ_MEDIA_VIDEO),
 
[READ_MEDIA_AUDIO](https://developer.android.com/reference/android/Manifest.permission#READ_MEDIA_AUDIO).
   
   This means there probally should be some updates to media-capture plugin. :D


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