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
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Summary of differences between personal and work partitions, from app's point of view

Please link me to docs if there is anything on this. I've found nothing so far.

 

I'd like to try building a complete list of the differences that an app may encounter when running in the work partition, compared to the personal partition.

 

To start things off:

 

Environment variables:

 

Personal:

PERIMETER=personal

PERIMETER_HOME=/accounts/1000

 

Work:

PERIMETER=??? (work, maybe?)

PERIMETER_HOME=/accounts/1000-enterprise

 

(Related vars like HOME, SANDBOX, TEMP/TMP/TMPDIR change correspond to PERIMETER_HOME.)

 

BBM:

Personal has it, Work has none, from what I understand.

 

Development mode:
Personal: sideloading works with debug token, you can SSH in to check logs etc.

Work: no corresponding mechanisms?


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10
My Carrier: none

Re: Summary of differences between personal and work partitions, from app's point of view


peter9477 wrote:

Development mode:
Personal: sideloading works with debug token, you can SSH in to check logs etc.

Work: no corresponding mechanisms?


Apparently Work perimeter does in fact still allow debug tokens, and the same basic mechanisms are available. The difference is that there are related perimeter policies that an IT admin would have to configure on the server to enable that, but then it should basically work the same. (Per the info I've been given... I may have a chance to test this out in a few days and I'll report more then if nobody else has chimed in.)


Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
Please use plain text.
Developer
ekke
Posts: 1,412
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Summary of differences between personal and work partitions, from app's point of view

just also doing some stuff in work perimeter.

thx Peter collecting the differences.

... want to add another one:

 

BlackBerry Work Drives

BlackBerry Work Drives App from BB World must be published to the devices from BES10

works only in work perimeter

At Server Side there must exist shared network drive, where the user has permission,

from inside BB Work Drives App user adds shared drive,

drive gets a name per ex.

myServerData

now you can read and write files at Enterprise Server from cascades Apps :smileyhappy:

 

this is the path:

QDir::currentPath() + "/shared/myServerData/myFile.json"

 

So your shared network drives have pathes like Dropbox or Box, but not using a fix name, because user can type in the name of his/her shared folder.

 

cool feature :smileyhappy:

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

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.
Developer
simon_hain
Posts: 15,806
Registered: ‎07-29-2008
My Device: Z10 LE
My Carrier: O2 Germany

Re: Summary of differences between personal and work partitions, from app's point of view

To debug apps in the work perimeter you have to set a few IT policies which are, at this time, only available in a beta version of BES10.
You also have to run OS 10.2

See
https://developer.blackberry.com/native/documentation/cascades/dev/tools/debugging.html#testingandde...

BES push only arrives if the app runs in the work perimeter.
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Please use plain text.
BlackBerry Development Advisor
PBernhardt
Posts: 740
Registered: ‎12-16-2008
My Device: BlackBerry Z30
My Carrier: Bell

Re: Summary of differences between personal and work partitions, from app's point of view

There are some apps that are not present in the work perminter, if you are trying to use the invocation framework. The big one is the camera app (though the camera service itself still works fine).

 

If you need to invoke the camera, I'd recommend deploying something like CloudyPics (https://github.com/blackberry/Cascades-Community-Samples/tree/master/CloudyPics) in the work permiter and invoking that. I have a blog post about that coming soon, but but it's pretty straight forward.

Paul Bernhardt
Application Development Consultant
BlackBerry
@PBernhardt

Did this answer your question? Please accept this post as the solution.
Found a bug? Report it to the Developer Issue Tracker
Please use plain text.
Developer
ekke
Posts: 1,412
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: Summary of differences between personal and work partitions, from app's point of view

has someone tried to use QProcess and execute

ifconfig -v

from work perimeter ?

 

have to explore this - customer reported a problem where ifconfig -v shows no interfaces in standard output,

where the same runs well in private perimeter

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

BlackBerry Elite Developer
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

Open Source Enthusiast
blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner
bb10-development: http://appbus.org Twitter: @ekkescorner
Please use plain text.