04-20-2014 06:03 PM
I'm using Webworks 2.0 and I need to check whether my app has permission to acces shared files, in 1.0 blackberry.system.hasPermission('access_shared
Is there a function to replace this check? I can't seem to find it.
Solved! Go to Solution.
04-25-2014 03:57 PM
The original API only checked if you had given a specific URL access to a feature.
Ie: if you had put the following into your config file:
<access uri="https://somedomain.com" subdomains="true"> <feature id="blackberry.app" version="18.104.22.168" required="true"/> <feature id="blackberry.invoke" version="22.214.171.124" required="true"/> </access>
There isn't a way to check for individualt permissions through code. You should catch the error and respond to it within your app.