You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/09/23 22:22:37 UTC

[GitHub] [cordova-plugin-camera] breautek commented on issue #763: Cannot open camera only on Google Pixel 3

breautek commented on issue #763:
URL: https://github.com/apache/cordova-plugin-camera/issues/763#issuecomment-926206930


   Cannot really speak on the root issue but
   
   > Do we need to add this permission? https://developer.android.com/reference/android/Manifest.permission#CAMERA
   
   This permission is only used for apps that uses the Camera APIs directly. This plugin does not use the Camera APIs. Instead it uses what Android calls Intents, which is to delegate the responsibility of taking an image using the camera by launching another app which **does** have the `Camera` permissions already to handle the camera operations. This is the recommended approach to use by Google and covers the needs of most apps.
   
   There is one caveat however, if the application declares that the app uses the `Camera` permission, then you must have the Camera permission to use Intents. This is a case already via:
   
   https://github.com/apache/cordova-plugin-camera/blob/0fba37cac3d2053d4c5f8acbb2cf0c5dbd0903be/src/android/CameraLauncher.java#L125
   
   and
   
   https://github.com/apache/cordova-plugin-camera/blob/0fba37cac3d2053d4c5f8acbb2cf0c5dbd0903be/src/android/CameraLauncher.java#L252-L284


-- 
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-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org