[
https://issues.apache.org/jira/browse/CB-9616?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14909917#comment-14909917
]
ASF GitHub Bot commented on CB-9616:
------------------------------------
GitHub user ogoguel opened a pull request:
https://github.com/apache/cordova-android/pull/222
CB-9616 AndroidM Runtime Permission Support
Add onRequestPermissionsResult handler for plugins
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ogoguel/cordova-android CB-9616
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-android/pull/222.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 #222
----
commit c0a8c61e5f245cebf1edbab871bc6055a26c4b68
Author: Olivier Goguel <[email protected]>
Date: 2015-09-27T22:33:32Z
CB-9616 AndroidM Runtime Permission Support
----
> Plugins need support for Android M run-time permissions
> --------------------------------------------------------
>
> Key: CB-9616
> URL: https://issues.apache.org/jira/browse/CB-9616
> Project: Apache Cordova
> Issue Type: Improvement
> Components: Android
> Affects Versions: 4.1.1
> Reporter: Olivier Goguel
>
> To implement the new Android M run-time permission support, an application
> activity needs to call requestPermission() and get the user result by
> overriding onRequestPermissionsResult()
> Unfortunately, if a plugin can call the requestPermission() on its Cordova
> Activity, it has no way to be notified when the onRequestPermissionResult is
> being received
> Similar to the onPause or onResult implementation, the Cordova Activity
> should pass this event to to the pluginManager/ (through the
> CordovaWebViewImpl) in order to let developers override
> onRequestPermissionResult() in their plugin code if need be
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]