diff --git a/www/background-mode.js b/www/background-mode.js index 8dcc3f9..ed3642d 100644 --- a/www/background-mode.js +++ b/www/background-mode.js @@ -350,3 +350,10 @@ channel.onCordovaReady.subscribe(function () { exports.setDefaults({}); }); }); + +// Called after 'deviceready' event +channel.deviceready.subscribe(function () { + if (window.webkit && exports.isEnabled()) { + exports.fireEvent('enable'); + } +});