开发PhoneGap + Blackberry 一直是我最近的噩梦... onDeviceReady 没有启动,我在任何地方都找不到webworkers.js... 任何人都有某种使用BB 7.1 运行的复杂应用程序?
添加代码: 我在 PhoneGap 示例中使用默认代码:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<title>Hello World</title>
</head>
<body>
<div class="app">
<h1>Apache Cordova</h1>
<div id="deviceready" class="blink">
<p class="event listening">Connecting to Device</p>
<p class="event received">Device is Ready</p>
</div>
</div>
<script type="text/javascript" src="js/webworks.js"></script>
<script type="text/javascript" src="cordova-2.2.0.js"></script>
<script type="text/javascript" src="js/index.js"></script>
<script type="text/javascript">
app.initialize();
</script>
</body>
并使用波纹扩展,我得到以下控制台日志:
Viewport target-densitydpi is not supported. index.html:24
GET http:// localhost/bb/js/webworks.js 404 (Not Found) index.html:36
Ripple :: Environment Warming Up (Tea. Earl Gray. Hot.) ripple.js:475
XHR finished loading: "http://localhost/bb/config.xml". ripple.js:484
webworks.handset :: Initialization Finished (Make it so.) ripple.js:475
eula response: true ripple.js:483
XHR finished loading: "http://localhost/bb/config.xml". ripple.js:484
Viewport target-densitydpi is not supported. index.html:24
GET http:// localhost/bb/js/webworks.js 404 (Not Found)
我使用的是 Windows 8 x64,可能与它有关???
C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5 中没有 Ripple 文件夹