I am trying to keep a APP running in background. I found this plugin: https://github.com/katzer/cordova-plugin-background-mode
I inserted the .js file on index.html after cordova.js: <script type="application/javascript" src="js/background-mode.js"></script>
When I use the emulator XDK, there is an error: ReferenceError: require is not defined
Looking inside the .js file, there ares these lines:
var exec = require('cordova/exec'),
channel = require('cordova/channel');
How I can supply these complements? There is another way to do that?
Thank you.