[ https://issues.apache.org/jira/browse/CB-12781?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Li closed CB-12781. ---------------------------- Resolution: Duplicate Fix Version/s: Master Close the issue as duplicated with https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/464 > 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 > Fix For: Master > > > 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