Can't test Cordova app when open it in browser

后端 未结 3 763
小鲜肉
小鲜肉 2020-12-20 06:25

I created a Cordova app using the 4.3.0 version and the project for an iOS project.

Whenever I open the index.html (www folder) file in a

相关标签:
3条回答
  • 2020-12-20 06:46

    Both answers wrong. The most correct way is run in your phone simulator or actual device.

    For android

    cordova emulate android
    

    For ios you need a Mac machine and Xcode.

    0 讨论(0)
  • 2020-12-20 06:53

    Don't do this way. Make your site in normal way using XAMPP/WAMP. Copy all the same code and folders. Then Check it. Whatever you make change in XAMPP Site, update it in PhoneGap. It is easier this way.

    0 讨论(0)
  • 2020-12-20 07:03

    You can't test an iOS project on a regular browser, if you want to test on a browser, add browser platform

    cordova platform add browser
    

    then

    cordova run browser
    
    0 讨论(0)
提交回复
热议问题