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

Web and WebWorks Development

Reply
Developer
Posts: 1,229
Registered: ‎03-20-2011
My Device: Playbook, Z10 LE, Dev Alpha B, 2x Dev Alpha C
My Carrier: 3, Orange, Vodafone
Accepted Solution

Invoking Application Permissions page?

I've got access_shared + read_device_identifying_information permissions set in my app

 

I do a check on startup

 

if(!blackberry.system.hasPermission("access_shared")) {
  // Output a message to the user

  // Close app button
  }

 

This basically shows the user a screen explaining that the denied permission stops the app working and tells them how to switch it on

 

At this point the only option the app has is to close

 

It would be preferable if I could add another choice for the user which opens Application Permission, ideally with MyApp presented, so they can enable the required permission is they so desire

 

I kniow there are a LOT of un-documented invoke / card 'things you can do' but can't work out the particular request to make this happen

 

As this is required for B4BB it is a useful recipe for any WW developer's cookbook




Click the like button if you find my posts useful!
BlackBerry Development Advisor
Posts: 836
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: Invoking Application Permissions page?

Looks like you can't go as far as you'd like, but you can get pretty close:

 

https://developer.blackberry.com/html5/documentation/settings.html

Tim Windsor
Open Source Technical Lead