cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Li (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-12781) BarcodeScanner plugin on ios does not dismiss the scan screen after user does not allow the permission
Date Wed, 10 May 2017 17:36:04 GMT

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

Jonathan Li commented on CB-12781:
----------------------------------

Yes. 
I will create an issue there and close this one.

Thanks
Jonathan

> BarcodeScanner plugin on ios does not dismiss the scan screen after user does not allow
the permission
> ------------------------------------------------------------------------------------------------------
>
>                 Key: CB-12781
>                 URL: https://issues.apache.org/jira/browse/CB-12781
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-ios
>    Affects Versions: 1.5.0, Master
>         Environment: ios
>            Reporter: Jonathan Li
>
> In ios cordova project with barcode scanner plugin, when first time running the app,
and call the below method
> cordova.plugins.barcodeScanner.scan()
> The app will show a dialog to ask user whether allow to use camera or not, if user clicks
"Do not allow" button, currently the permission dialog will dismiss, but the scan screen is
still opened, and as the app cannot use camera, the user cannot do anything except for clicking
the cancel button to cancel the operation.
> This is not a user-friend behavior, as when user clicks "Do not allow", the user is already
decided to cancel the operation, so the plugin should automatically cancel the scan request,
and dismiss the scan screen and also return the cancel result to the cordova callback. There
is no reason to still leave the scan screen opened and have to require user to click the cancel
button to cancel the operation. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message