mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2024-12-23 13:57:35 +00:00
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',
|
||||
text: 'Doing heavy tasks.',
|
||||
ticker: 'App is running in background',
|
||||
resume: true,
|
||||
enable: true
|
||||
resume: true
|
||||
};
|
||||
};
|
||||
|
||||
@ -79,12 +78,6 @@ exports.configure = function (options) {
|
||||
if (device.platform == 'Android') {
|
||||
cordova.exec(null, null, 'BackgroundMode', 'configure', [settings]);
|
||||
}
|
||||
|
||||
if (settings.enable) {
|
||||
this.enable();
|
||||
} else {
|
||||
this.disable();
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user