Support windows platform - requires windows 10.14393 or newer

This commit is contained in:
Sebastián Katzer
2017-01-21 17:47:54 +01:00
parent 0ed766a91c
commit 096d2b2557
5 changed files with 136 additions and 95 deletions

View File

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