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

Web and WebWorks Development

Reply
New Developer
Posts: 13
Registered: ‎03-25-2014
My Device: Z10
My Carrier: 0021658331904
Accepted Solution

BlackBerry background Thread

I'm working with BlackBerry Webworks 2.0 and developping an application for BB 10 devices. I want to know if there a way to start a background thread or background service which will have the role of starting up the application at preconfigured time . I did it in Android but I don't know if it is doable on BB10 with webworks 2.0 or not.

help Ppease?

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: BlackBerry background Thread

This sounds to me like the job for a headless app, if I am not mistaken. This is not currently possible, but is slated to arrive in May based on the roadmap here:
https://developer.blackberry.com/html5/downloads/roadmap/

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.
Highlighted
New Developer
Posts: 13
Registered: ‎03-25-2014
My Device: Z10
My Carrier: 0021658331904

Re: BlackBerry background Thread

I found a sloution based on the headless Applications. So to do this we have just to create a project that combines UI part and Headless part.

The headless part is a separate module in a BlackBerry 10 application. As such you could develop the headless piece separately in native language and integrate it later with the WebWorks app by adding it to the package.

Also, background serviced are now possible with 10.2.1 but the amount of triggers is still limited. One of the valid triggers is push. Here an example of Headless apps:

 

http://devblog.blackberry.com/2013/11/headless-apps-101/