Can't test Cordova app when open it in browser

断了今生、忘了曾经 提交于 2019-11-29 12:37:53

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

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.

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.

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