[ 
https://issues.apache.org/jira/browse/CB-14082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16467520#comment-16467520
 ] 

ASF GitHub Bot commented on CB-14082:
-------------------------------------

KamenGoranchev opened a new pull request #321: CB-14082: (iOS) Dismiss camera 
popover on permission denied
URL: https://github.com/apache/cordova-plugin-camera/pull/321
 
 
   ### Platforms affected
   IOS
   
   ### What does this PR do?
   It dismisses the camera popover automatically when the permission for camera 
usage is denied
   
   ### What testing has been done on this change?
   Used the patched version of the plugin in a iOS application going through 
all the cases of accepting/denying permissions
   
   ### Checklist
   - [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) 
in the JIRA database
   - [x] Commit message follows the format: "CB-3232: (android) Fix bug with 
resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform 
affected.
   - [ ] Added automated test coverage as appropriate for this change.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Camera popover is not dismissed when user denies permission
> -----------------------------------------------------------
>
>                 Key: CB-14082
>                 URL: https://issues.apache.org/jira/browse/CB-14082
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: cordova-plugin-camera
>         Environment: iOS
>            Reporter: Kamen Goranchev
>            Priority: Minor
>              Labels: plugin-camera
>
> Affected Version: [email protected]
> When user denies permission for camera usage the camera popover remains on 
> the screen but only black screen with the camera controls in displayed. In 
> this state the user can still proceed with taking picture, which will result 
> in black image.
> Note that if you try to start taking a picture again an alert is displayed 
> that the permission is not granted. Pressing on OK on this alert, correctly 
> dismisses the camera popover.
> My suggestion is to dismiss the camera popover also in deny permission case. 
> This way it will be consistent and will not lead to the state where you can 
> take black picture, that is unusable.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to