breautek commented on issue #1105:
URL: 
https://github.com/apache/cordova-android/issues/1105#issuecomment-714813142


   > For our requirement we have to display overlay border while taking pic in 
APK and IPA apps.
   
   I can't really speak for iOS apps because I have less knowledge of the inner 
workings on iOS but this isn't possible with our `cordova-plugin-camera`. I'll 
explain why.
   
   Android has a concept called "Intents". An intent allows us to do trigger an 
action without necessary having the permissions to do that action. We do this 
by delegating the action to another app that does have those permissions. The 
Apache cordova plugin uses intents to use the camera, which means it uses 
whatever camera app is available on the phone. We have minimal control over the 
behaviour of the camera itself. In fact your app goes into the background while 
the camera app is in focus to do it's thing. This allows us to use the camera 
without explicitly declaring the camera permissions which are considered 
"dangerous" and google may give you a hard time during app reviews, depending 
on how you use the camera APIs.
   
   To have full control over the camera view, you'd have to have a plugin that 
uses the camera APIs directly. And honestly speaking, you'd also have a second 
challenging, which is displaying a native view alongside a webview in a way 
that makes sense.
   
   I'll be locking this thread so that we don't get much further off course 
with the original topic. If you have any other questions, use our 
[slack](http://slack.cordova.io/), or if you think you've found a bug, then 
open a new issue.


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

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