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

Web and WebWorks Development

Reply
Developer
stardomains
Posts: 168
Registered: ‎12-14-2009
Accepted Solution

BB10 is pausing my application when in background...how can I avoid this?

I'm using the latest BB10 for Webworks on an Alpha Dev.I have a timer running that is supposed to do something when it is up. The problem is when I have it running and put it in the background and start say browser the web on the browser well the timer is stopped by the system and never does what it is supposed to. I know in Android there is code you can put to keep your application alive and avoid the system from pausing it. How can I do that in BB10 Webworks?

 

 

Please use plain text.
BlackBerry Development Advisor
Nukul
Posts: 115
Registered: ‎06-06-2011
My Carrier: Rogers

Re: BB10 is pausing my application when in background...how can I avoid this?

you need this in your config.xml

 

<rim:smileytongue:ermissions>
    <rim:smileytongue:ermit>run_when_backgrounded</rim:smileytongue:ermit>
</rim:smileytongue:ermissions>

 

 

https://developer.blackberry.com/html5/documentation/rim_permit_element.html

 

 

@nukulb
Please use plain text.
BlackBerry Development Advisor
Nukul
Posts: 115
Registered: ‎06-06-2011
My Carrier: Rogers

Re: BB10 is pausing my application when in background...how can I avoid this?

you need this in your config.xml

 

<rim:permissions>
    <rim:permit>run_when_backgrounded</rim:permit>
</rim: permissions>

 

https://developer.blackberry.com/html5/documentation/rim_permit_element.html

 

@nukulb
Please use plain text.