01-04-2013 01:05 PM
Hi,
I have recently started working working with Blackberry Webworks application. I have developed a small app and when i run this app in Ripple emulator in chrome i am seeing below error in chrom console.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,
initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,
user-scalable=no">
<title>Who Picks It?</title>
<link rel="stylesheet" href="css/bbui-min.css">
</head>
<body>
<script src="local:///chrome/webworks.js" type="text/javascript"></script>
<script type="text/javascript" src="js/bbui-min.js"></script>
<script type="text/javascript">
var webworksreadyFired = false;
document.addEventListener('webworksready', function(e) {
if (webworksreadyFired) return;
webworksreadyFired = true;
bb.init({actionBarDark: true, controlsDark: true,
onscreenready: function(element, id, params) {
if (id == 'gameScreen') {
//blackberry.app.lockOrientation ('landscape-primary');
}
}
});
// Open main screen
bb.pushScreen('mainScreen.html', 'mainScreen');
}, false);
</script>
</body>
</html>Also when i try to access Webworks provided API (as below) i am getting error saying lockOrientation method is not available. Same is happening even if i copy webworks<version>.js file from framework directory to my app folder.
blackberry.app.lockOrientation ('landscape-primary');
Please help me in resolving this.
Thanks in advance.
Thanks and Regards,
Jittu
01-07-2013 07:23 AM - edited 01-07-2013 07:24 AM
Are you using latest workworks SDK
I think this problem is fixed in latest version,
I am using workwork latest sdk with chrome 23.xx.xxx in iMac OS X Lion
Following lines load perfect in ripple simulator and alpha device both
<script type="text/javascript" src="bbui.js"></script>
<script type="text/javascript" src="local:///chrome/webworks.js"></script>
01-07-2013 10:02 AM
Yes. I am using latest SDK i.e BlackBerry 10 WebWorks SDK 1.0.4.5 and chrome version is 23.0.x.
01-08-2013 03:58 AM
Hi,
I have tried the same on Mac as well and facing same issue.
I have uninstalled all other extensions in chrome and tried but same issue.
I have installed ripple on latest chrome canay release there also same issue is happening.
Do i need to enable any flags in chrome for this to work?
Thanks,
01-09-2013 12:40 PM
Somebody please help me...i m not able to proceed with development.
01-09-2013 03:35 PM
You can ignore the error about not downloading the webworks.js file. Ripple injects its own version of the API's and does not use that file.
I do not belive that ripple supports the lockOrientation API.
You can log a feature request here:
01-10-2013 12:31 AM
Do we have any webpage where we can check which all things are supported by Ripple emulator?
01-10-2013 09:17 AM
Ripple compatibility is listed along with the BB platforms for each API
https://developer.blackberry.com/html5/apis/