mirror of
https://bitbucket.org/TheBosZ/cordova-plugin-run-in-background
synced 2025-12-13 01:43:24 +00:00
Added Windows 10 support
This commit is contained in:
@@ -112,7 +112,7 @@ exports.setDefaults = function (overrides) {
|
||||
}
|
||||
}
|
||||
|
||||
if (device.platform == 'Android') {
|
||||
if ((device.platform == 'Android') || (device.platform == 'Windows')){
|
||||
cordova.exec(null, null, 'BackgroundMode', 'configure', [defaults, false]);
|
||||
}
|
||||
};
|
||||
@@ -127,7 +127,7 @@ exports.setDefaults = function (overrides) {
|
||||
exports.configure = function (options) {
|
||||
var settings = this.mergeWithDefaults(options);
|
||||
|
||||
if (device.platform == 'Android') {
|
||||
if ((device.platform == 'Android') || (device.platform == 'Windows')){
|
||||
cordova.exec(null, null, 'BackgroundMode', 'configure', [settings, true]);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user