我刚刚编译了第一次在Phonegap Build上创建我的Ionic应用程序,然后我在Android设备上安装了应用程序:Samsung Galaxy SII i9100和Android 4.0.3。与Phonegap编译离子应用程序时的问题构建:黑屏
,但我得到一个黑色的屏幕:
<ion-nav-view></ion-nav-view>
是空的。
我把config.xml文件放在www文件夹中。
该应用程序在我的桌面浏览器中运行良好。
你能帮我弄清楚吗?
感谢
我刚刚编译了第一次在Phonegap Build上创建我的Ionic应用程序,然后我在Android设备上安装了应用程序:Samsung Galaxy SII i9100和Android 4.0.3。与Phonegap编译离子应用程序时的问题构建:黑屏
,但我得到一个黑色的屏幕:
<ion-nav-view></ion-nav-view>
是空的。
我把config.xml文件放在www文件夹中。
该应用程序在我的桌面浏览器中运行良好。
你能帮我弄清楚吗?
感谢
Before Cordova 2.3.0, the Connection object existed at: navigator.network.connection.
To match the spec, this was changed to navigator.connection in 2.3.0.
navigator.network.connection still exists, but is now deprecated and will be removed in a future release.
相反的navigator.network.connection.type
,它应该是navigator.connection.type
所以,改变
var networkState = navigator.network.connection.type;
到
var networkState = navigator.connection.type;
希望这可以帮助。如果不是,请编辑您的问题并重新发布您的整个日志,如果这不是完整的日志。
当你离开你的应用程序然后在计算机的浏览器上打开它时会发生什么? – Keval 2015-04-02 11:56:10
@Keval是的,它在我的浏览器中打开。 – Louis 2015-04-02 12:25:28
您可以使用adb并在此提供调试日志吗?首先需要通过USB将设备连接到PC。该命令将帮助您滤除科尔多瓦的错误。 'adb logcat CordovaLog:D *:S)' – Keval 2015-04-02 12:48:30