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

Posts: 169
Registered: ‎03-25-2011
My Device: Playbook, Z10 L.E.
My Carrier: Vodafone NL

App running on the background without permission



I created a very simple small app to understand more about Application State & Process States and how the states changes. I was following the documentation but I encountered a strange behaviour.


In summary, I used the custom Timer control in my app, started it on creationComleted  and let it run. Than I started changing the application state (minimizing it, opening another app, etc ...) but the Timer never stopedno matter what I did even tough the run_when_backgrounded permission was not specified in the project's bar-descriptor.xml file. It only stops after manually quiting the app.


Is this normal? If so, can anyone explain why/how?

The full source is attached.

Posts: 259
Registered: ‎01-08-2013
My Device: Z10 LE
My Carrier: SiMobil

Re: App running on the background without permission

[ Edited ]

App doesn't stop when minimized. At least that's why experience showed.

New Developer
Posts: 10
Registered: ‎06-23-2014
My Device: Z10
My Carrier: Bell Canada

Re: App running on the background without permission

Bckground run => the timer working after you press the (x) to close the app. It is NOT the same as the active frame state.

Posts: 293
Registered: ‎10-15-2012
My Device: bb10 developer
My Carrier: Orange

Re: App running on the background without permission

Are you testing this in the simulator or on a real device?