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
billbsb
Posts: 144
Registered: ‎03-25-2011
My Device: Playbook, Z10 L.E.

App running on the background without permission

Hello,

 

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.

Cheers!
Please use plain text.
Developer
BojanKogoj
Posts: 76
Registered: ‎01-08-2013
My Device: Z10 LE

Re: App running on the background without permission

[ Edited ]

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

Please use plain text.
New Developer
Bourne11
Posts: 10
Registered: ‎06-23-2014
My Device: Z10

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.

Please use plain text.
Developer
strobejb
Posts: 276
Registered: ‎10-15-2012
My Device: bb10 developer

Re: App running on the background without permission

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

 

Please use plain text.