Remove enable: flag
This commit is contained in:
parent
96663a36e8
commit
01202bb250
@ -44,8 +44,7 @@ exports.getDefaults = function () {
|
|||||||
title: 'App is running in background',
|
title: 'App is running in background',
|
||||||
text: 'Doing heavy tasks.',
|
text: 'Doing heavy tasks.',
|
||||||
ticker: 'App is running in background',
|
ticker: 'App is running in background',
|
||||||
resume: true,
|
resume: true
|
||||||
enable: true
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -79,12 +78,6 @@ exports.configure = function (options) {
|
|||||||
if (device.platform == 'Android') {
|
if (device.platform == 'Android') {
|
||||||
cordova.exec(null, null, 'BackgroundMode', 'configure', [settings]);
|
cordova.exec(null, null, 'BackgroundMode', 'configure', [settings]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (settings.enable) {
|
|
||||||
this.enable();
|
|
||||||
} else {
|
|
||||||
this.disable();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user