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
New Developer
Lupu_Ciprian
Posts: 5
Registered: ‎11-08-2012
My Device: Blackberry PlayBook

BlackBerry 10 Background Service

Hello , Is there any way in BB 10 to autostart an aplication at phone startup ? And if it is, is it possible to reamin in background while doing background processing like cheking gps location or wifi status?

Thank you in advance.

Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: BlackBerry 10 Background Service

This was asked just a few posts back... here's my answer: http://supportforums.blackberry.com/t5/Native-Development/Blakberry-10-Background-application-and-au...

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!
New Developer
Lupu_Ciprian
Posts: 5
Registered: ‎11-08-2012
My Device: Blackberry PlayBook

Re: BlackBerry 10 Background Service

Hello , thank you for your quick reply. I did saw your post from yesterday but I am an android developer and I can not believe that blackberry doesn`t have support for services(aplications that run in the background) . For example if I want to make an alarm clock , it is absolutelly Impossible to do in BB10? I saw here:  https://developer.blackberry.com/cascades/documentation/dev/fundamentals/index.html  .

that some background processing might be possible. But I did not find anything about autostarting, so my alarmclock would be useless without autostarting it.

Regards Ciprian

New Developer
Lupu_Ciprian
Posts: 5
Registered: ‎11-08-2012
My Device: Blackberry PlayBook

Re: BlackBerry 10 Background Service

So ? can anyone give me more detailse , please?

Developer
peter9477
Posts: 6,473
Registered: ‎12-08-2010
My Device: PlayBook, Z10

Re: BlackBerry 10 Background Service

I would expect an alarm clock to be able to register an event in the calendar service, asking to be invoked at a particular time in the future. Whether that's supported yet or not, it's certainly the correct way to enable something like this rather than requiring each app that may want that behavior to have to sit around in the background all the time using up system resources.

There will be background service (and possibly auto-start) support in future, but it is simply not part of the set of services that will be available at launch.

Peter Hansen -- (BB10 and dev-related blog posts at http://peterhansen.ca.)
Author of White Noise and Battery Guru for BB10 and for PlayBook | Get more from your battery!