[ https://issues.apache.org/jira/browse/CB-12368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15840305#comment-15840305 ]
ASF GitHub Bot commented on CB-12368: ------------------------------------- GitHub user sryze opened a pull request: https://github.com/apache/cordova-plugin-camera/pull/251 CB-12368: Fix wrong permission request on Android ### Platforms affected Android ### What does this PR do? The plugin was requesting permission for camera instead of external storage. ### What testing has been done on this change? Tested on Android 6 & 7. ### Checklist - [X] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database - [X] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected. - [ ] Added automated test coverage as appropriate for this change. You can merge this pull request into a Git repository by running: $ git pull https://github.com/sryze/cordova-plugin-camera cb-12368 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cordova-plugin-camera/pull/251.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #251 ---- commit bfa48b9f13009d1b944e1f239a3468a386b263a2 Author: Sergey Zolotarev <sr...@yandex.com> Date: 2017-01-26T19:41:56Z CB-12368: Fix wrong permission request on Android The plugin was requesting permission for camera instead of external storage. Surprisingly enough this fixed CB-12368. ---- > Denying permission to gallery results in app crash on Android 6.0 > ----------------------------------------------------------------- > > Key: CB-12368 > URL: https://issues.apache.org/jira/browse/CB-12368 > Project: Apache Cordova > Issue Type: Bug > Components: Plugin Camera > Environment: Android 6.0 > Reporter: Sergey Zolotarev > Labels: android > Fix For: 6.4.0 > > > Steps to reproduce: > 1. Get picture from camera/gallery using Camera plugin > 2. When asked for permission: Allow > 3. Go back > 4. Get picture again > 5. Deny permission > 6. App crashed -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org