0

我用 jquerymobile (1.2.0) 创建了一个全新的 worklight (5.0.6) 项目,添加了 blackberry 6-7 环境,仅此而已。这是 wlcommoninit 代码。

function wlCommonInit(){
    WL.Client.connect({
            onSuccess: onConnectSuccess,
            onFailure: onConnectFailure
    });
}
function onConnectSuccess(){alert("ok");}
function onConnectFailure(){alert("ko");}

预览应用程序时出现以下问题。

wlclient init started worklight.js:1118
before: app init onSuccess worklight.js:1118
Request [/apps/services/api/cm2/blackberry/init] worklight.js:1118
after: app init onSuccess worklight.js:1118
wlclient init success worklight.js:1118
Failed to load resource: the server responded with a status of 403 (Forbidden) 
`http://localhost:8080/apps/services/api/cm2/blackberry/init`
[/apps/services/api/cm2/blackberry/init] failure. state: 403, response: undefined worklight.js:1118

公共环境工作正常。我错过了什么吗?感谢您的帮助

4

1 回答 1

0

预览 BlackBerry 6-7(以及 Windows Phone)时存在一个已知缺陷;403状态响应处理不当(得到它是可以的,但处理不当......)。

该应用程序应该可以在实际设备上正常运行(也可能是模拟器)。

于 2013-04-29T08:15:43.763 回答