Phonegap application isn't showing properly on iOS emulator or device [closed]

和自甴很熟 提交于 2019-12-12 06:39:14

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/27004209/phonegap-application-isnt-showing-properly-on-ios-emulator-or-device

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!