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
varghesekiran
Posts: 38
Registered: ‎09-27-2012
My Device: 9930
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 (Retired)
mimendoza
Posts: 64
Registered: ‎06-04-2012
My Device: Blackberry Z10
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!

----------------------------------------------------------------------------------
- Did this post help solve the issue? Click on "Accept as Solution"
- Was the content of this post helpful? Please give it a "Thumbs Up"

developer.blackberry.com
@BlackBerryDev
Please use plain text.
Developer
varghesekiran
Posts: 38
Registered: ‎09-27-2012
My Device: 9930
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 (Retired)
erikjohnzon
Posts: 245
Registered: ‎09-21-2012
My Device: Q10
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.
Contributor
_shivam
Posts: 31
Registered: ‎08-25-2012
My Device: Torch 9800
My Carrier: none

Re: Webworks doubt

just you need to update your config.xml

Please use plain text.