trackmyapp commented on issue #706:
URL: 
https://github.com/apache/cordova-plugin-inappbrowser/issues/706#issuecomment-656031574


   I think I have the same issue.
   I added the "NSCameraUsageDescription" and "NSPhotoLibraryUsageDescription" 
in the config.xml file. So the user gets asked for permission when trying to 
take a photo or video from an open website in the inappbrowser. If he gives the 
permission everything works fine, but if he denies the permission in the prompt 
or in the settings the camera is still being opened, only showing the camera 
buttons like cancel and a black screen.
   
   If someone knows how to catch that error that would be great! Then we could 
just show the user a message and switch to the app settings.
   
   In Xcode following error message is shown:
   `[Back Camera][com.apple.avfoundation.avcapturedevice.built-in_video:0]>) 
failed: (Error Domain=AVFoundationErrorDomain Code=-11852 "Cannot use Back 
Camera" UserInfo={NSLocalizedFailureReason=This app is not authorized to use 
Back Camera., AVErrorDeviceKey=<AVCaptureFigVideoDevice: 0x1016c77e0 [Back 
Camera][com.apple.avfoundation.avcapturedevice.built-in_video:0]>, 
NSLocalizedDescription=Cannot use Back Camera})`


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