Phonegap Plugin

Asked

Viewed 89 times

0

Hello, I’m a beginner with phonegap/Cordova, and I’ve been having trouble understanding some things, such as installing plugins, no matter the way I do, when I build the project on the phonegap site itself https://build.phonegap.com, it does not detect the plugins that have been inserted.

For example, this simple email plugin:

https://github.com/katzer/cordova-plugin-email-composer/tree/cab303d

I install via console: cordova plugin add https://github.com/katzer/cordova-plugin-email-composer.git

And insert in my xml the reference: <gap:plugin name="de.appplant.cordova.plugin.email-composer" version="0.8.2" />

And then I build it on the site, and in plugins does not appear this plugin inserted.

If someone who has experience with hybrid app can clarify me, I appreciate it from now on.

1 answer

0

If you’re gonna use the PhoneGap Build no need to install the plugin via console, only on config.xml For you to install a plugin via git just do it like this:

<plugin spec="https://github.com/katzer/cordova-plugin-email-composer.git" source="git" />

then zip your files and send to the PhoneGap Build. And don’t forget to add the .js of your la plugin in your index.html so it can work ;)

Browser other questions tagged

You are not signed in. Login or sign up in order to post.