[
https://issues.apache.org/jira/browse/CB-10128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15037765#comment-15037765
]
Nicolas Leclerc edited comment on CB-10128 at 12/3/15 1:26 PM:
---------------------------------------------------------------
I see that the plugin uses the following code to check for permission:
{code}
if ([ALAssetsLibrary authorizationStatus] == ALAuthorizationStatusAuthorized) {
...
}
{code}
where another plugin does:
{code}
AVAuthorizationStatus authStatus = [AVCaptureDevice
authorizationStatusForMediaType:AVMediaTypeVideo];
if (authStatus == AVAuthorizationStatusAuthorized) {
...
}
{code}
May be that could help.
was (Author: nleclerc):
I see that the plugin uses the following code to check for permission:
{code}
if ([ALAssetsLibrary authorizationStatus] == ALAuthorizationStatusAuthorized) {
...
}
{code}
where another plugin does:
{code}
AVAuthorizationStatus authStatus = [AVCaptureDevice
authorizationStatusForMediaType:AVMediaTypeVideo];
if (authStatus == AVAuthorizationStatusAuthorized) {
...
}
{code}
May be that could be help.
> Incorrect error message when user cancels photo capture
> -------------------------------------------------------
>
> Key: CB-10128
> URL: https://issues.apache.org/jira/browse/CB-10128
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Camera
> Affects Versions: 1.2.0, 2.0.0
> Environment: cordova 5.3.3, ios platform 3.9.2
> Reporter: Nicolas Leclerc
>
> When photo capture screen is open and user clicks {{cancel}} button then
> plugin sends {{has no access to assets}} error (ie. camera access not
> authorized) where it used to be {{no image selected}}.
> That's problematic because camera auth is incorrectly reported as missing
> when it is indeed authorized and also there's no way to tell the user has
> cancelled the action.
> This used to work fine in v0.3.x.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]