01-31-2013 09:11 AM
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
01-31-2013 11:58 AM
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. :-)