mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2025-12-13 09:53:22 +00:00
Support windows platform - requires windows 10.14393 or newer
This commit is contained in:
@@ -99,7 +99,7 @@ exports.setDefaults = function (overrides) {
|
||||
}
|
||||
}
|
||||
|
||||
if ((device.platform == 'Android') || (device.platform == 'Windows')){
|
||||
if (device.platform == 'Android') {
|
||||
cordova.exec(null, null, 'BackgroundMode', 'configure', [defaults, false]);
|
||||
}
|
||||
};
|
||||
@@ -114,7 +114,7 @@ exports.setDefaults = function (overrides) {
|
||||
exports.configure = function (options) {
|
||||
var settings = this.mergeWithDefaults(options);
|
||||
|
||||
if ((device.platform == 'Android') || (device.platform == 'Windows')){
|
||||
if (device.platform == 'Android') {
|
||||
cordova.exec(null, null, 'BackgroundMode', 'configure', [settings, true]);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user