diff --git a/platforms/android/android.json b/platforms/android/android.json
index 2f794b86..05bcef78 100644
--- a/platforms/android/android.json
+++ b/platforms/android/android.json
@@ -1,126 +1,126 @@
{
- "prepare_queue": {
- "installed": [],
- "uninstalled": []
- },
- "config_munge": {
- "files": {
- "res/xml/config.xml": {
- "parents": {
- "/*": [
- {
- "xml": "",
- "count": 1
- },
- {
- "xml": "",
- "count": 1
- },
- {
- "xml": "",
- "count": 1
- },
- {
- "xml": "",
- "count": 1
- },
- {
- "xml": "",
- "count": 1
- },
- {
- "xml": "",
- "count": 1
- }
- ]
- }
+ "prepare_queue": {
+ "installed": [],
+ "uninstalled": []
+ },
+ "config_munge": {
+ "files": {
+ "res/xml/config.xml": {
+ "parents": {
+ "/*": [
+ {
+ "xml": "",
+ "count": 1
+ },
+ {
+ "xml": "",
+ "count": 1
+ },
+ {
+ "xml": "",
+ "count": 1
+ },
+ {
+ "xml": "",
+ "count": 1
+ },
+ {
+ "xml": "",
+ "count": 1
},
- "AndroidManifest.xml": {
- "parents": {
- "/manifest/application": [
- {
- "xml": "",
- "count": 1
- }
- ],
- "/manifest": [
- {
- "xml": "",
- "count": 1
- },
- {
- "xml": "",
- "count": 1
- }
- ]
- }
+ {
+ "xml": "",
+ "count": 1
}
+ ]
}
- },
- "installed_plugins": {
- "cordova-plugin-app-event": {
- "PACKAGE_NAME": "de.appplant.cordova.plugin.backgroundmode.example"
- },
- "cordova-plugin-badge": {
- "PACKAGE_NAME": "de.appplant.cordova.plugin.backgroundmode.example"
- },
- "cordova-plugin-console": {
- "PACKAGE_NAME": "de.appplant.cordova.plugin.backgroundmode.example"
- },
- "cordova-plugin-vibration": {
- "PACKAGE_NAME": "de.appplant.cordova.plugin.backgroundmode.example"
- },
- "cordova-plugin-device": {
- "PACKAGE_NAME": "de.appplant.cordova.plugin.backgroundmode.example"
- },
- "cordova-plugin-background-mode": {
- "PACKAGE_NAME": "de.appplant.cordova.plugin.backgroundmode.example"
+ },
+ "AndroidManifest.xml": {
+ "parents": {
+ "/manifest/application": [
+ {
+ "xml": "",
+ "count": 1
+ }
+ ],
+ "/manifest": [
+ {
+ "xml": "",
+ "count": 1
+ },
+ {
+ "xml": "",
+ "count": 1
+ }
+ ]
}
+ }
+ }
+ },
+ "installed_plugins": {
+ "cordova-plugin-app-event": {
+ "PACKAGE_NAME": "de.appplant.cordova.plugin.backgroundmode.example"
},
- "dependent_plugins": {},
- "modules": [
- {
- "id": "cordova-plugin-badge.Badge",
- "file": "plugins/cordova-plugin-badge/www/badge.js",
- "pluginId": "cordova-plugin-badge",
- "clobbers": [
- "plugin.notification.badge",
- "cordova.plugins.notification.badge"
- ]
- },
- {
- "id": "cordova-plugin-vibration.notification",
- "file": "plugins/cordova-plugin-vibration/www/vibration.js",
- "pluginId": "cordova-plugin-vibration",
- "merges": [
- "navigator.notification",
- "navigator"
- ]
- },
- {
- "id": "cordova-plugin-device.device",
- "file": "plugins/cordova-plugin-device/www/device.js",
- "pluginId": "cordova-plugin-device",
- "clobbers": [
- "device"
- ]
- },
- {
- "id": "cordova-plugin-background-mode.BackgroundMode",
- "file": "plugins/cordova-plugin-background-mode/www/background-mode.js",
- "pluginId": "cordova-plugin-background-mode",
- "clobbers": [
- "cordova.plugins.backgroundMode",
- "plugin.backgroundMode"
- ]
- }
- ],
- "plugin_metadata": {
- "cordova-plugin-app-event": "1.2.0",
- "cordova-plugin-badge": "0.7.4",
- "cordova-plugin-console": "1.0.5",
- "cordova-plugin-vibration": "2.1.3",
- "cordova-plugin-device": "1.1.4",
- "cordova-plugin-background-mode": "0.7.2"
+ "cordova-plugin-badge": {
+ "PACKAGE_NAME": "de.appplant.cordova.plugin.backgroundmode.example"
+ },
+ "cordova-plugin-console": {
+ "PACKAGE_NAME": "de.appplant.cordova.plugin.backgroundmode.example"
+ },
+ "cordova-plugin-vibration": {
+ "PACKAGE_NAME": "de.appplant.cordova.plugin.backgroundmode.example"
+ },
+ "cordova-plugin-device": {
+ "PACKAGE_NAME": "de.appplant.cordova.plugin.backgroundmode.example"
+ },
+ "cordova-plugin-background-mode": {
+ "PACKAGE_NAME": "de.appplant.cordova.plugin.backgroundmode.example"
+ }
+ },
+ "dependent_plugins": {},
+ "modules": [
+ {
+ "id": "cordova-plugin-badge.Badge",
+ "file": "plugins/cordova-plugin-badge/www/badge.js",
+ "pluginId": "cordova-plugin-badge",
+ "clobbers": [
+ "plugin.notification.badge",
+ "cordova.plugins.notification.badge"
+ ]
+ },
+ {
+ "id": "cordova-plugin-vibration.notification",
+ "file": "plugins/cordova-plugin-vibration/www/vibration.js",
+ "pluginId": "cordova-plugin-vibration",
+ "merges": [
+ "navigator.notification",
+ "navigator"
+ ]
+ },
+ {
+ "id": "cordova-plugin-device.device",
+ "file": "plugins/cordova-plugin-device/www/device.js",
+ "pluginId": "cordova-plugin-device",
+ "clobbers": [
+ "device"
+ ]
+ },
+ {
+ "id": "cordova-plugin-background-mode.BackgroundMode",
+ "file": "plugins/cordova-plugin-background-mode/www/background-mode.js",
+ "pluginId": "cordova-plugin-background-mode",
+ "clobbers": [
+ "cordova.plugins.backgroundMode",
+ "plugin.backgroundMode"
+ ]
}
-}
\ No newline at end of file
+ ],
+ "plugin_metadata": {
+ "cordova-plugin-app-event": "1.2.0",
+ "cordova-plugin-badge": "0.7.4",
+ "cordova-plugin-console": "1.0.5",
+ "cordova-plugin-vibration": "2.1.3",
+ "cordova-plugin-device": "1.1.4",
+ "cordova-plugin-background-mode": "0.7.2"
+ }
+}
diff --git a/platforms/windows/www/js/index.js b/platforms/windows/www/js/index.js
index 04801f75..229ce0e1 100644
--- a/platforms/windows/www/js/index.js
+++ b/platforms/windows/www/js/index.js
@@ -56,7 +56,6 @@ var app = {
plugin.setDefaults({ color: 'F14F4D' });
plugin.overrideBackButton();
- plugin.disableWebViewOptimizations();
plugin.on('activate', app.onModeActivated);
plugin.on('deactivate', app.onModeDeactivated);
@@ -110,6 +109,8 @@ var app = {
onModeActivated: function() {
var counter = 0;
+ plugin.disableWebViewOptimizations();
+
app.timer = setInterval(function () {
counter++;
@@ -127,7 +128,7 @@ var app = {
navigator.vibrate(1000);
}
}
- }, 1000 * 1);
+ }, 1000);
},
// Reset badge once deactivated
onModeDeactivated: function() {