I'm using DevExtreme (DevExpress mobile) within VS2013 to develop a mobile website that we then compile down to native ios and Android apps. I need to use one of the plugins within my project for when we compile to an ios App. I can't find any good documentation on how to do this. I can find the code for the plugins (i.e. https://github.com/hazemhagrass/phonegap-background), but can't see how to incorporate and use this within my DevExtreme project.
I believe I'm supposed to add the following line to my config.xml file:
<plugin name="com.badrit.backgroundjs" spec="0.1.0" source="pgb" />
I do this and then add the required JS files to my project to use, but when running the I get an error as the plugin requires Cordova JS methods to be defined and my cordova.js file is empty. I believe DevExtreme populates the cordova file when compiling to a native app, per the comment in the file:
// This is a fake cordova.js file. It will be replaced with a file specific to the platform and version when building the native package.
Does anyone know how to include these plugins within a DevExtreme project and then how you use them once they are running?