Phonegap Plugins work on CLI?

2019-08-05 12:49发布

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!

2条回答
相关推荐>>
2楼-- · 2019-08-05 13:31

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.

查看更多
孤傲高冷的网名
3楼-- · 2019-08-05 13:36

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.

查看更多
登录 后发表回答