[ https://issues.apache.org/jira/browse/CB-12781?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16004937#comment-16004937 ]
Kerri Shotts commented on CB-12781: ----------------------------------- What plugin are you using? I'm guessing you're using https://github.com/phonegap/phonegap-plugin-barcodescanner, though? Issues with that plugin would be managed on that plugin's issue manager: https://github.com/phonegap/phonegap-plugin-barcodescanner/issues > 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-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org