Added Windows 10 support

This commit is contained in:
Mike Dailor
2015-11-25 11:24:11 -05:00
parent 2538983691
commit ffdd29d55a
4 changed files with 112 additions and 6 deletions

View File

@@ -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]);
}
};