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
Contributor
mnosov
Posts: 15
Registered: ‎10-25-2012
My Carrier: Megafon

Using PPS service in my application

Hi,

My product consists of 2 modules: 1) service 2) UI application. I want to use PPS for communication between 'service' and 'ui application'. Can I do it on Blackberry Dev Alpha? I've tried to create PPS channel inside /pps/services/ but I have an error 'permission denied'. I tried to open it inside /tmp/ but it seems it is just a single file, not a PPS channel (i.e. the file "/tmp/service?wait,delta" was created).

Does anyone know, is there any example of how 3-rd party developers can use PPS for inter-process communication?

 

Thanks

Please use plain text.
Developer
peter9477
Posts: 6,448
Registered: ‎12-08-2010
My Carrier: none

Re: Using PPS service in my application

There's no documented support for doing this, and for now it seems use of PPS by third-party apps is a risky thing to consider building into apps.

If you want to try experimenting, I suspect you'd want to stick to the ./pps symlink which you'll find in your app's sandbox folder when it runs.  That links to a subfolder of /pps where it appears app's may get their own area, in future.

In my Battery Guru app running on the device now, that looks like this:

lrwxrwxrwx   1 root      nto              76 Jan 31 11:54 pps -> /pps/accounts/1000/appserv/ca.engenuity.PowerMon.testDev_ty_PowerMon4990f05_

The destination folder does not currently exist, and our apps have no write access to the parent, so either there's intended to be an API layer which would create that folder at the appropriate time, or the support simply isn't in place yet.

 

I'll note that this "appserv" folder is either brand new with this release, or was added in Gold 2 (the previous one)... I didn't check there lately so I'm not sure when. The important point is that this is an area of rapid change and you'd be quite unwise to actually try delivering apps that make use of it for now.

 

By all means, however, experiment away and please let us know what you find. :-)


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.