Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Contributor
Posts: 14
Registered: ‎11-19-2012
My Device: 9900, BB10 Simulator
My Carrier: Rogers

Programmatically check app permissions accepted by the user

When an app has a set of requested permissions set in bar-descriptor.xml, the user, upon installing that app, is asked if he/she allows that app to have those permisions.

 

The user maydeny one or more of the requested permissions.

 

How an app can check which permissions it has at any point of time?

 

Thanks.

Highlighted
Developer
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course
My Carrier: Vodafone

Re: Programmatically check app permissions accepted by the user

You can't. You can only try to access the protected function and handle any errors you may encounter. See this thread and vote for this JIRA feature request.

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands