Quantcast
Channel: HTML5
Viewing all articles
Browse latest Browse all 663

Background Mode Plugin Katzer

$
0
0

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.


Viewing all articles
Browse latest Browse all 663


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>