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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
New Contributor
varghesekiran
Posts: 5
Registered: ‎09-27-2012
My Carrier: airtel
Accepted Solution

Webworks doubt

Hi,

 

I am new to Blackberry development. I need to develop an app using jquerymobile(webworks). In my app i need to constantly update the map using gps even if the app exits.,so is it possible to run the app in the background so that i can constantly update the map.

Please use plain text.
BlackBerry Development Advisor
mimendoza
Posts: 54
Registered: ‎06-04-2012
My Carrier: Bell

Re: Webworks doubt

There is a permission with the WebWorks SDK to allow the app to continue running JavaScript when the app is in the background: "run_when_backgrounded".

 

Hope that helps!

--------
- If a post contains the solution to the problem, please click "Accept as Solution"
- If a post contains helpful content, please give it a "Thumbs Up"

developer.blackberry.com
@BlackBerryDev
Please use plain text.
New Contributor
varghesekiran
Posts: 5
Registered: ‎09-27-2012
My Carrier: airtel

Re: Webworks doubt

[ Edited ]

Hi mimendoza ,

 

I reffered the link that you attached with your reply. Actually i need to develop this app in BlackBerry OS: 5.0 - 7.0 ,but the link says that rim : permit element does not support these platforms.Its only supports BB playbook os and BB 10 os. so is it possible to run the app in the background so that i can constantly update the map in  the  platform  BlackBerry OS: 5.0 - 7.0 ?

Please use plain text.
BlackBerry Development Advisor
erikjohnzon
Posts: 236
Registered: ‎09-21-2012
My Carrier: Virgin

Re: Webworks doubt

Inside your content element you can specify the rim:background. Just like this:

 

<content src="index.html" >

    <rim:background src="listener.html" runOnStartup="true" />
</content>
 
You can see an example at the bottom of this page for pre BB 10 and below (Go to bottom):
 
@erikjohnzon
erjohnson@blackberry.com
Please use plain text.