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?
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.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With