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
Contributor
edyb
Posts: 15
Registered: ‎03-25-2012
My Carrier: Rogers

run_when_backgrounded broken with new Webworks/OS BB10?

My app is broken after upgrading to BB10 OS 10..0.9.1103 on my dev alpha and using Webworks 1.0.3.8 for BB10 to recompile (as was suggested). Aside from many small glitches, I have noticed now another important feature is not working:

 

"run_when_backgrounded" in my rim:smileytongue:ermissions section of the config.xml. 

 

It was working *FINE* on the previous Webworks/BB10 OS and that is what I based my submission to Appworld on, was already approved and for sale and working beautifully. But now I recompiled using the latest Webworks SDK and this is not being followed.

 

Has the format for this XML file changed? I already changed the format for the landscape/portrait orientation XML, but why is my app not staying on after the default backlight timeout?

 

It is frustrating especially after working to get my apps polished and submitted that a version change would keep breaking key features without any solutions or work-arounds. I hope this feature hasn't been removed from webworks apps and javascript. 

 

Any ideas? Help!

Please use plain text.
Contributor
edyb
Posts: 15
Registered: ‎03-25-2012
My Carrier: Rogers

Re: run_when_backgrounded broken with new Webworks/OS BB10?

Ok, so I just confirmed the app STILL RUNS when background mode but the screen is OFF. I intended my backlight to stay on or have a feature or API to call to set backlight to never turn off.
Please use plain text.
Contributor
edyb
Posts: 15
Registered: ‎03-25-2012
My Carrier: Rogers

Re: run_when_backgrounded broken with new Webworks/OS BB10?

[ Edited ]

Ok. I believe it has to do with my work-around to keep the backlight on, not the "run when backgrounded" option. The work around used a looping video element playing to keep screen on. Did RIM finally patch that hole?But where is the option to keep backlight on? 

It was working fine in the previous OS. All I did was recompile without changing a line of code except for making webworks.js reference to local:///chrome/webworks.js. 

 

Anyone know if there is a function implemented now in webworks to allow toggling the backlight timeout value? Or whether the video loop method should still work or was touched? Help! My app was successfully keeping the backlight on using that trick and so was my Playbook app... That was the only way that existed for webworks app to do this, because we didn't have any other way to do this. 

 

Please use plain text.