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

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

I completely disagree with this, since permissions work differently in iOS and 
Android, and it's better that they're handled by the plugin and not in a 
Javascript API.

> 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