且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

PhoneGap应用程序在iOS模拟器或设备上无法正常显示

更新时间:2023-10-20 20:53:52

要查看控制台输出(例如Phonegap)的应用程式(javascript),请执行下列其中一项操作:



Safari(iOS):
在装置上,浏览和启用Web检查器。在Safari中启用开发工具,您应该在Developer菜单中看到该设备。



Chrome(Android):
导航到chrome:// inspect /#选择它,并使用Cmd + R刷新并获取应用程序启动的输出。设备并打开webview。使用ctrl + R刷新并查看应用程序启动的输出。此外,请确保在Android设备上启用调试。


During the development process of my phonegap/cordova application I used "phonegap serve". When I access my application through "phonegap serve" with the Phonegap app, the application is working as expected.

However when I perform a "phonegap run ios" on either the emulator or iPhone itself, the jQuery Mobile collapsable set is not seen on the second half of the screen.

Here is the latest committed code on the development branch: https://github.com/kacole2/jsmap1/tree/placesAPI

This is how the application looks when viewed with "phonegap serve"

This is how the application looks when viewed on the emulator or iOS device with "phonegap run ios"

Thank you in advance for any help

To view the console output (javascript) for an app with a webview (like Phonegap), do one of the following:

Safari (iOS): On the device, disable private browsing and enable web inspector. In Safari enable development tools and you should see the device in the Developer menu. Select it and use Cmd+R to refresh and get the output from app startup.

Chrome (Android): Navigate to chrome://inspect/#devices and open the webview. Use ctrl+R to refresh and see the output from app startup. Also, make sure that debugging is enabled on the Android device.