Is there a difference between PhoneGap and Cordova commands?

前端 未结 10 1962
耶瑟儿~
耶瑟儿~ 2020-11-28 01:04

I just installed Phonegap for the first time and just browsed through the docs. What confuses me is the fact that some docs are using the command \"phonegap\" and some \"cor

10条回答
  •  伪装坚强ぢ
    2020-11-28 01:12

    Here are differences that I have discovered:

    I am comparing the phonegap 3.3.0-0.18.0 CLI to the functionality described in the cordova 3.3.0 documentation for that CLI.

    1. "ls" is an option for "cordova plugin" but not for "phonegap plugin". You must use "list" instead. e.g.: "phonegap plugin list"

    2. "serve" is not documented in "phonegap -help" but it does exist and it does work. It will not find and load phonegap.js so the pages never fully load but it still does provide some value. I'm not sure if this is different than the behavior cordova.

    3. "phonegap platform add " does not work in phonegap. You must do a "phonegap build " to add support for a platform.

    Note that you may also experience some confusing error messages in phonegap where the suggested solution refers to using the cordova command.

提交回复
热议问题