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
Developer
Posts: 1,739
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone
Accepted Solution

detect SecurityPerimeter

from docs I know that there's a SecurityPerimeter ENUM to detect if the app is installed into Enterprise or Personal Perimeter.

 

perhaps I'm overlooking something, but I didn't found out where this flag is stored

 

at the moment I'm checking my directory path for '-enterprise',

but would be better to test against value of SecurityPerimeter

 

rgx

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner
Highlighted
Developer
Posts: 849
Registered: ‎03-03-2011
My Device: Z10

Re: detect SecurityPerimeter

Good question. Can somebody from BB answer this, please.

I also noticed (off-topic) that there is no way to detect which app permissions were allowed by users.
--------------------------------------------------------------------------------------
Leader of Ljubljana BlackBerry Developer Group
BlackBerry Certified Builder for Native Application Development
Developer
Posts: 216
Registered: ‎09-18-2009
My Device: Z10
My Carrier: O2

Re: detect SecurityPerimeter

[ Edited ]

The enum value currently is used as the return type for InvokeTarget.perimeter().

 

https://developer.blackberry.com/native/reference/cascades/bb__system__invoketarget.html#function-pe...

 

Nevertheless, a method returning the app's security perimeter would be very useful.

BlackBerry Development Advisor
Posts: 57
Registered: ‎10-04-2012
My Device: developer
My Carrier: none

Re: detect SecurityPerimeter

The perimeter in which your app was launched is provided in the PERIMETER environment variable. Possible values are "personal" and "enterprise".

 

Please note: this is not an official API and may be changed in the future without notice

Developer
Posts: 1,739
Registered: ‎04-08-2010
My Device: Passport Silver, PRIV
My Carrier: Telekom.de, O2, Vodafone

Re: detect SecurityPerimeter


IsaacGordezky wrote:

The perimeter in which your app was launched is provided in the PERIMETER environment variable. Possible values are "personal" and "enterprise".

 

Please note: this is not an official API and may be changed in the future without notice


thx Isaac

so I'll rely on checking my directory path for '-enterprise'

 

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development native Mobile Business Apps
BlackBerry 10 | Qt Mobile (Android, iOS)
Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org
mobile-development: http://appbus.org Twitter: @ekkescorner