12-19-2012 08:33 AM
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.
12-19-2012 09:26 AM
You can't run background services. You could use push services to trigger the app when relevant changes are detected by your web server.
12-19-2012 09:36 AM
It's not my web server. I am simply accessing it. Any other way I can do this.
12-19-2012 09:51 AM
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/document
12-19-2012 09:54 AM
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.
12-19-2012 10:00 AM
12-19-2012 10:08 AM
Yes, by 'minimized' I mean that you send it to 'thumbnail' state.
12-19-2012 10:13 AM
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!![]()
12-19-2012 10:17 AM
There is no shame here. And BB10 is not Linux.
12-19-2012 05:11 PM
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!
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?