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

Tom Nightingale commented on CB-10075:
--------------------------------------

Stepping through cordova-camera-plugin's CameraLauncher.java in the Android 
Studio debugger shows that a call to getReadPermission() is made but 
onRequestPermissionResult() does not get called.

> Runtime permission request suppresses actual API call
> -----------------------------------------------------
>
>                 Key: CB-10075
>                 URL: https://issues.apache.org/jira/browse/CB-10075
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android, Plugin Camera, Plugin Geolocation
>         Environment: Nexus 5, Android 6.0 Marshmellow
>            Reporter: Tom Nightingale
>              Labels: android, android6.0
>
> Both the Cordova Camera and Geolocation plugins (and likely others) access 
> APIs restricted by Android 6.0's new runtime permissions system. The first 
> time a call is made an allow/deny dialog is presented to the user.
> Neither the success or error callbacks are called when the dialog is 
> dismissed, effectively suppressing the API call.
> If permission is granted then subsequent calls to the API will function as 
> expected. However it does not seem possible to detect whether this dialog has 
> been presented or what the user's response was. This makes it impossible to 
> know when to make a second call to the API.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to