03-11-2013 06:09 AM
is there any way to check if the user has given permissions to the current app for any of the app bar-descriptor.xml permissions added???
If it is possible, is there any way to open the 'Application Permissions' (Settings/Security and privacy/Application Permission) screen from the app?
For example, I add GPS permission to the app. When the user install the apps, he unchecks the GPS permission so the app can't get his location. I want to inform the user it is needed to use GPS location and prompt the user to open the permissions screen.
Solved! Go to Solution.
03-11-2013 07:55 AM - edited 03-11-2013 08:06 AM
A small number of the permissions can be read through a supplied class associated with that service, however the majority, including GPS, will return some kind of PERMISSION_DENIED error when trying to access.
I think the one you should be looking for is
03-11-2013 08:22 AM
As well, for the question about Settings, you can use invocation to open the Application Permissions page, though not at the page for your own app (yet): https://developer.blackberry.com/cascades/document
03-11-2013 08:39 AM
Thanks Peter, I didn't realise this was possible.
So in essence on detecting that the permission is not set you can inform the user as such then take them to this page to set it.
Much more user-friendly than just giving an error message saying 'Your location permission has not been set'.