Allow at least enable: on other platforms
This commit is contained in:
parent
379e9228fb
commit
92eb50de9e
@ -76,10 +76,9 @@ exports.disable = function () {
|
|||||||
exports.configure = function (options) {
|
exports.configure = function (options) {
|
||||||
var settings = this.mergeWithDefaults(options || {});
|
var settings = this.mergeWithDefaults(options || {});
|
||||||
|
|
||||||
if (device.platform != 'Android')
|
if (device.platform == 'Android') {
|
||||||
return;
|
|
||||||
|
|
||||||
cordova.exec(null, null, 'BackgroundMode', 'configure', [settings]);
|
cordova.exec(null, null, 'BackgroundMode', 'configure', [settings]);
|
||||||
|
}
|
||||||
|
|
||||||
if (settings.enable) {
|
if (settings.enable) {
|
||||||
this.enable();
|
this.enable();
|
||||||
|
Loading…
Reference in New Issue
Block a user