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

Joe Bowser commented on CB-10343:
---------------------------------

@Bnaya Yes, we can and do abstract the permission requests from the developer.  
Part of the goal of the project is to abstract the platform differences away in 
this manner.  If you want, you can write a third party plugin that just 
requests permissions, and handles the callbacks, since the plugin API supports 
this, but this isn't something that we're looking to take on right now.

> Permissions request plugin / api
> --------------------------------
>
>                 Key: CB-10343
>                 URL: https://issues.apache.org/jira/browse/CB-10343
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: Android, iOS
>            Reporter: Bnaya
>
> With android 6 now requesting permissions on demand is on the 2 main 
> platforms.
> In order to create good UX and to align with the platforms guidelines the 
> permissions request and checking shouldn't be bound to the plugin,
> or not to the api call itself, but should have separate api call. 
> If you can't abstract it properly, its better to provide platform specific js 
> api and guidelines about what is the proper way to ask for permissions.
> That will also make the development of new plugins much more easier,
> and will simplify existing plugins as they will have standart way to ask for 
> permission or they can just tell the developer to use the permissions plugin 
> before calling their plugin 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