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
Developer
rashm2k
Posts: 18
Registered: ‎10-12-2012
My Device: Playbook

Background deamon on BB10? Is this possible? How?

My app that I'm porting is currently purely QML, it's not particularly complex. However I would like to make it a little bit more intelligent and provide an even better user experience. My app basically looks at a webservice and presents this to the user.

 

I plan to make the following changes and am unsure if this is possible:

 

1) Run the app in the background, every so often the app will update itself from the web service.

2) Once the app updates the ICON on the menu will be modified to reflect any changes.

 

 

Update interval will be controlled by the user, can be disabled etc.

Developer
Innovatology
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course

Re: Background deamon on BB10? Is this possible? How?

You can't run background services. You could use push services to trigger the app when relevant changes are detected by your web server.

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
Developer
rashm2k
Posts: 18
Registered: ‎10-12-2012
My Device: Playbook

Re: Background deamon on BB10? Is this possible? How?

It's not my web server. I am simply accessing it. Any other way I can do this.

Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook

Re: Background deamon on BB10? Is this possible? How?

According to docs your app can run in background if it is *minimized* and if user allowed your app to run in background when minimized.

https://developer.blackberry.com/cascades/documentation/dev/fundamentals/index.html

Developer
rashm2k
Posts: 18
Registered: ‎10-12-2012
My Device: Playbook

Re: Background deamon on BB10? Is this possible? How?

What does it mean by 'minimized' will it be visible in the multitasking window?

 

It would be really annoying if it was, as the whole point of is that the app runs in the background and the user can open the main app if needed.

Trusted Contributor
bdaemon
Posts: 152
Registered: ‎02-23-2011
My Device: dev alpha playbook 9500 8300

Re: Background deamon on BB10? Is this possible? How?

it is not availalbe at this time, as i known.
Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook

Re: Background deamon on BB10? Is this possible? How?

Yes, by 'minimized' I mean that you send it to 'thumbnail' state.

Developer
rashm2k
Posts: 18
Registered: ‎10-12-2012
My Device: Playbook

Re: Background deamon on BB10? Is this possible? How?

Shame about that, BB10 is Linux so I do hope they add this functionality to it, even if the background task can be launched manually.

 

I've been offered a Dev Alpha device so I'll port my app to BB10 see how it goes. Can't wait!:Clap:

Developer
BGmot
Posts: 1,068
Registered: ‎11-24-2011
My Device: PlayBook

Re: Background deamon on BB10? Is this possible? How?

There is no shame here. And BB10 is not Linux.

Developer
smiley
Posts: 1,497
Registered: ‎07-14-2008
My Device: Z10

Re: Background deamon on BB10? Is this possible? How?


rashm2k wrote:

Shame about that, BB10 is Linux so I do hope they add this functionality to it, even if the background task can be launched manually.

 

I've been offered a Dev Alpha device so I'll port my app to BB10 see how it goes. Can't wait!:Clap:


Its a shame because background task is the current OS.  Don't understand why RIM didn't add this yet.  How can we convert our Java apps without background support?