2013-04-05 36 views
0

我已经创建了一个html5游戏。我的html5游戏不能在BB10模拟器中工作

根据bb10 webworks指南,我制作了config.xml文件。 我的游戏在纹波模拟器中工作正常。但是当我在BB10 Dev Alpha模拟器中测试它时,只会出现黑屏。 是什么问题? 我已经上传我的代码here.

config.xml中

<?xml version="1.0" encoding="UTF-8"?> 
    <widget xmlns="http://www.w3.org/ns/widgets" 
    xmlns:rim="http://www.blackberry.com/ns/widgets" 
    version="1.0.0.5" id="mani" xml:lang="en"> 
    <author href="http://www.example.com/" 
     rim:copyright="Copyright 1998-2012 My Corp">My Corp</author> 
     <name>mani</name> 
<icon src="logo.png"/> 
    <content src="index.html"/> 
    <feature id="blackberry.identity" required="true" version="1.0.0.0"/> 
    </widget> 

我在index.html文件添加脚本标记。 休息的东西没有变化。

的index.html

 <script src="local:///chrome/webworks.js" type="text/javascript"></script>  
+0

请在此处发布config.xml。 – 2013-04-05 12:34:24

+1

不要像这样上传你的整个项目....... – Signare 2013-04-05 13:04:44

+0

我已经发布了config.xml文件。 – user1544914 2013-04-06 16:24:19

回答

0

如果你得到一个黑色的屏幕,那么我期待有是阻碍你的游戏从开始和/或如何

这里有指令的运行时错误使用远程网络检查器。我建议连接,打开控制台面板并重新加载你的应用程序。它应该马上告诉你,如果有错误: https://developer.blackberry.com/html5/documentation/web_inspector_overview_1553586_11.html

你有任何远程内容在你的应用程序中使用?如果是这样,我怀疑该应用程序没有访问该内容的权限,因为我在您的config.xml中看不到任何<访问>元素。请确保您将所有远程URL正确列入白名单:https://developer.blackberry.com/html5/documentation/access_element_834677_11.html