0

我有这个问题。虽然它是间歇性的,但我担心我的应用程序的未来用户也会体验到它,我不希望这样。我升级到了cordova-2.6.0。我现在在 iPad 上运行我的应用程序时遇到问题。

在控制台上,一切似乎都在工作。启动画面显示正确,但在启动画面(间歇性)index.html 未加载或其纯白屏幕之后。

所以这是我在控制台上看到的:

Multi-tasking -> Device: Yes, App: YES
Resetting Plugins due to page load.
Finished load of: file:///var/mobile/Applications/(numbers)/Project.app/www/index.html
DEPRECATION NOTICE: The Connection ReachableViaWWAN return value of '2g' is deprecated as of Cordova version 2.6.0 and will be changed to 'cellular' in a future release.

然后白屏!!(就像白人步行者一样。哈哈)

无论如何,在我的 Cordova-2.6.0.js 上,我更改了 xhr.open

从:xhr.open('GET', 'cordova_plugins.json', true); 到:xhr.open('GET', 'file:///cordova_plugins.json', true);

只是因为我无法在浏览器上测试我的应用程序。只是用谷歌搜索修复。

有任何想法吗?谢谢

4

1 回答 1

0

该错误可能与弃用通知无关。我一直在 iPhone 中收到该通知,没有任何问题。

检查您是否拥有 iPad 所需的所有启动屏幕文件并将其添加到 config.xml: https ://build.phonegap.com/docs/config-xml

于 2013-07-19T18:12:19.760 回答