08-05-2011 02:13 AM
I know that apps are deactivated and can't do anything when the user switches to another app, unless the multitasking preference is set to showcase.
Nevertheless I wanted to ask if there is another mechanism to work in background. For example, when you have a twitter client and you change to another app, it would be nice to be able to refresh the tweeds in the background and notify the user about updates, not only when he actively checks.
Anything possible yet? Or does anybody know about plans for an API to support such background services?
Would be really nice because otherwise the PlayBook is not a real multitasking device like the iPhone once was. Even if there's the showcase mode an app developer can't rely on that. because it's a set by the user.
Supporting multiple modes is no option, because e.g. most users want a mail client that notifies them about new mails. They don't want to check manualy every time they suspect a new mail arrived.
Forcing them to use the showcase mode isn't an option either, because why should all apps kepp running, when you just need certain small background services.
08-05-2011 08:26 AM
You are looking for the QNXSystemPowerMode stuff.
It's not the same as a background service: your app still needs to be launched by the user and running, but it doesn't have to be visible or the "active" app.
I've used the features in there for both White Noise (which keeps playing its sound even when you put the tablet to sleep) and Battery Guru (which continues to record battery level, voltage, power, and other readings even when inactive or the tablet is sleeping). This stuff works great, and if more apps used it, there'd be little or no reason to need the Standby timeout to be longer than 5 minutes.
08-05-2011 08:34 AM
08-05-2011 08:57 AM