diff --git a/www/background-mode.js b/www/background-mode.js index f625a92..e11e2ed 100644 --- a/www/background-mode.js +++ b/www/background-mode.js @@ -28,8 +28,11 @@ document.addEventListener('backbutton', function () {}, false); // Called before 'deviceready' listener will be called channel.onCordovaReady.subscribe(function () { - // Set the default settings - exports.configure(); + // Device plugin is ready now + channel.onCordovaInfoReady.subscribe( function () { + // Set the defaults + exports.configure(); + }); // Only enable WP8 by default if (['WinCE', 'Win32NT'].indexOf(device.platform) > -1) {