Adding Cordova plugins


#1

This is probably more Cordova than Ionic question. I’m completely new to hybrid apps development and I’m currently struggling with sooo many things so please forgive me if this is a noob question.

I need to add plugins to my project. Namely SQLite and LowLatencyAudio.


I install them using cordova plugin add http://somewhereongithub.

And now is the part I don’t quite understand. Is that all I need to do? Or do I need to add that plugin to some XML config? Do I need to include plugin’s .js file in my project somewhere or is that handled automatically by cordova.js when I build the project?

Currently my project builds but plugins seem to be not working. And I don’t know if I’m doing something wrong in my code when trying to use plugins or if I didn’t install them properly.

Thanks for your help.


#2

You can run “cordova prepare” command after “cordova plugin add {github_url}” as mentioned on below link:

I ran these two commands and I am able to make use of third-party plugin in my app.

Good luck !
Gaurav