Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install cordova plugin from a forked repository

To install a phonegap plugin I can installed it using

cordova plugin install https://github.com/wymsee/cordova-HTTP.git

and adding the following into config.xml

<gap:plugin name="com.synconset.cordovahttp" version="0.1.4" />

as mentioned in this official document.
Now I need to installed from a forked repository and build the app for iOS and because I'm working on Windows, I need to use Phonegap cloud service.

Is it enough to install it using:

cordova plugin install https://github.com/brendonparker/cordova-HTTP.git

If yes, what should I put in config.xml?

like image 832
s korhani Avatar asked Oct 03 '15 06:10

s korhani


People also ask

How do I add a plugin to config XML Cordova?

When adding plugins or platforms, use the --save flag to add them to config. xml. Ex: cordova platform add android --save. Existing projects can use cordova plugin save and cordova platform save commands to save all previously installed plugins and platforms into your project's config.

Can I use Cordova plugin with ionic?

For developers using Ionic with Cordova, our team has developed a collection of TypeScript wrappers for open source Cordova plugins that make it easy to add native functionality to any Ionic app. See Ionic Native. These plugins are submitted and maintained by the Ionic community.


1 Answers

Its as simple as that, all you need is to fork the plugin to your git and then use the cli to add the plugin to your project via

cordova plugin add https://github.com/username/forked-plugin-name.git

and then if required edit the config.xml accondingly

like image 66
404 Avatar answered Sep 26 '22 12:09

404