Phonegap Plugins work on CLI?

江枫思渺然 提交于 2019-12-13 00:11:45

问题


Does the Phonegap Plugins work on CLI or only on the phonegap online build? If yes, please tell me how to properly integrate the splashscreen plugin on phonegap 3.3.

Thank you!


回答1:


From Cordova 3.3 the right call is as follows:

cordova plugin add org.apache.cordova.splashscreen

Keep in mind to use cordova cli not phonegap, phonegap uses cordova but its focus is on the phonegap build, however it still allows you to do local stuff without the build.




回答2:


Yes, plugins work locally, not just in PhoneGap Build.

To install a new plugin (such as the Splashscreen plugin) run:

cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-splashscreen.git

Implementation works the same as PhoneGap Build — see the documentation.



来源:https://stackoverflow.com/questions/21831395/phonegap-plugins-work-on-cli

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