[
https://issues.apache.org/jira/browse/CB-14082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16471253#comment-16471253
]
ASF GitHub Bot commented on CB-14082:
-------------------------------------
KamenGoranchev commented on issue #321: CB-14082: (iOS) Dismiss camera popover
on permission denied
URL:
https://github.com/apache/cordova-plugin-camera/pull/321#issuecomment-388209021
@wtrocki Sorry I don't think I understand your question.
The code above my changes is handling the situation correctly. It does show
a custom alert and closes the camera popover when the user dismisses the alert.
I wanted to simulate the same behavior also in case with the system camera
permission alert. The problem there was that I could not register callback to
the alert that pops up automatically , therefor I needed to request the
permission manually.
So if your question is why we don't do the same thing in the other case the
answer is that it is already done there. Or if ask why we don't ask for the
permission one more time when it is already denied the answer is that iOS does
not support asking for the same permission if it is once denied.
----------------------------------------------------------------
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]