04-23-2012 08:07 AM
I need to know if there is any way to implement a repeating background task for the PlayBook inside a WebWorks app? I already used the search function, but it looked like that is not possible, but I cannot believe that.
Is there a chance to do any kind of workaround or to mix things up (maybe having some webworks code in the app, together with native code or something else)?? If so, could you please do a picture what has to be done to get the repeated background tasks working?
Thanks in advance.
Solved! Go to Solution.
05-15-2012 10:06 AM
I believe we covered this off already via Twitter, but I wanted to provide an answer for others here in the forums.
Currently the Tablet OS does not support background tasks. Application features can only run while the application itself is running.
To achieve something like a data sync, I'd recommend doing this in the background while the application is open and during its startup life cycle. This can be accomplished using async XmlHttpRequest and maybe even Web Workers?