PhoneGap 0.9.6(Blackberry)+ Sencha Touch 1.1.0:deviceready不会发射 [英] PhoneGap 0.9.6 (Blackberry) + Sencha Touch 1.1.0: deviceready does not fire

查看:165
本文介绍了PhoneGap 0.9.6(Blackberry)+ Sencha Touch 1.1.0:deviceready不会发射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立一个应用程序使用PhoneGap 0.9.6和Sencha Touch 1.1.0为黑莓。 (该应用程序已经在iOS和Android上正常运行。)

I'm trying to build an app that uses PhoneGap 0.9.6 and Sencha Touch 1.1.0 for Blackberry. (The app is already running fine on iOS and Android).

不幸的是,一旦包含Sencha Touch文件,关键的deviceready事件不会再触发。这是我如何测试:

Unfortunately the crucial deviceready event does not fire anymore once I include the Sencha Touch files. This is how I tested:


  1. http://www.phonegap.com/start#blackberry 使用BlackBerry WebWorks Packager 2.0.0

  2. 编辑索引。 html,所以它更短,并在init()和deviceInfo()中添加警报,并在Blackberry模拟器6.0.0.227上运行示例。 (无法弄清如何使用HTML添加代码块,请转到 http://pastebin.com/rUU1bDbL查看修改后的代码。)一切仍然有效。

  3. 包含Sencha Touch 1.1.0的css和js: http://pastebin.com/Y4Vydby1 更改后,函数deviceInfo不再调用。

  1. Build the PhoneGap example app as described on http://www.phonegap.com/start#blackberry using the BlackBerry WebWorks Packager 2.0.0
  2. Edit index.html so it's shorter and add alerts in init() and deviceInfo() and run the example on the Blackberry emulator 6.0.0.227. (Could not figure out how to add a code block with HTML so please go to http://pastebin.com/rUU1bDbL to see the modified code.) Everything is still working.
  3. Include the css and js of Sencha Touch 1.1.0: http://pastebin.com/Y4Vydby1 After that change the function deviceInfo does not get called anymore.

根据此主题,与jQuery Mobile类似的问题可以通过改变包含的顺序来解决,但我尝试过的每个组合都有同样的问题。

According to this thread a similar problem with jQuery Mobile can be solved by changing the order of the includes but every combination I tried had the same problem.

这是一个一般的问题吗?有人在Blackberry上成功使用PhoneGap 0.9.6和Sencha Touch 1.1.0吗?

Is this a general problem? Is someone successfully using PhoneGap 0.9.6 and Sencha Touch 1.1.0 on Blackberry?

推荐答案

临时解决方案:还原为PhoneGap 0.9。 5.1

Temporary solution: revert to PhoneGap 0.9.5.1

这似乎是最近尝试在Blackberry上使用Phonegap / Sencha的大多数人遇到的问题。

This seems to be a problem encountered by most people trying to work with Phonegap/Sencha on Blackberry recently.

我们发现,基本的PhoneGap示例演示会在我们包含sencha.js库时立即中断,即使我们甚至没有使用它。即,示例演示在Blackberry上运行良好,但是如果您包括sencha.js它不再正常工作。

We found that the basic PhoneGap Sample demo would break as soon as we included the sencha.js library, even though we were not even using it. I.e., the Sample demo runs fine on Blackberry, but if you then include sencha.js it no longer operates properly.

有人报告他们通过还原到0.9.5.1版本的PhoneGap来解决问题。这对我们有用,但1.0.0不适用。

Someone reported that they resolved the problem by reverting to 0.9.5.1 version of PhoneGap. That worked for us, but 1.0.0 does not.

http://groups.google.com/group/phonegap/browse_thread/thread/3ed0192e44a49ad1/6be7980f9164c455?lnk=gst&q= blackberry + sencha#6be7980f9164c455

我们很乐意看到这个修正,以便我们可以运行最新版本的PhoneGap。

We would love to see this fixed so that we can be running the latest version of PhoneGap.

这个问题最近在各种论坛上弹出,但是没有看到Phonegap的注意。

The issue has popped on on various forums lately, but doesn't appear to have Phonegap's attention yet.

例如, https://github.com/phonegap/phonegap-blackberry- webworks / issues / 44#issue_comment_form (未分配任何人)

e.g., https://github.com/phonegap/phonegap-blackberry-webworks/issues/44#issue_comment_form ("No one is assigned")

这似乎是一个主要问题,因为任何人都不可能做任何事情在使用PhoneGap / Sencha的新Blackberry上。我知道有很多其他事情固定在0.9.5.1和1.0.0之间,所以我担心使用旧版本的应用程序。

This seems like a major problem because it makes it impossible for anyone to do anything on a new Blackberry that uses PhoneGap/Sencha. I know there have been a lot of other things fixed between 0.9.5.1 and 1.0.0 so I am worried about fielding an app using the older version.

Keith Levi

Keith Levi

这篇关于PhoneGap 0.9.6(Blackberry)+ Sencha Touch 1.1.0:deviceready不会发射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆