diff --git a/mobile/config.xml b/mobile/config.xml
index c5fcc94..ff8fcaa 100644
--- a/mobile/config.xml
+++ b/mobile/config.xml
@@ -43,7 +43,6 @@
-
@@ -51,6 +50,7 @@
+
diff --git a/mobile/package-lock.json b/mobile/package-lock.json
index d3fa213..e0656ea 100644
--- a/mobile/package-lock.json
+++ b/mobile/package-lock.json
@@ -15,13 +15,6 @@
"integrity": "sha512-/GWUAqa2OJNlDF5VGSe3SR1QMHEPXxx54Ur56r0qQC0H9FlBr7kyBF2SgVEhzFCPbrW4UcYgVuWrq/2Ty3QvXg==",
"requires": {
"semver": "^5.4.1"
- },
- "dependencies": {
- "semver": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
- }
}
},
"ansi": {
@@ -1078,9 +1071,8 @@
"integrity": "sha512-4syQ0srjXvlH07sAxQlwMAAqIRTI28IWLYI44RFAKFRdYoIyopjQDqUWdieBK2ELvxgffkn6Rr0r0hMdRyGz/w=="
},
"cordova-plugin-background-mode": {
- "version": "0.7.3",
- "resolved": "https://registry.npmjs.org/cordova-plugin-background-mode/-/cordova-plugin-background-mode-0.7.3.tgz",
- "integrity": "sha512-LsU1v7EgTUROaks+tcQ8TnMzVUcU/TwjDVwj2O/4e4aI2q2ldLGsiZorqKqfqvwh2HoIssmY73OwJk91hQi62w=="
+ "version": "git+https://github.com/katzer/cordova-plugin-background-mode.git#0a6bf35cb9f2bfcb8a0a79767b57158e17a32f13",
+ "from": "git+https://github.com/katzer/cordova-plugin-background-mode.git"
},
"cordova-plugin-battery-status": {
"version": "2.0.3",
@@ -1131,13 +1123,6 @@
"semver": "^5.5.0",
"shebang-command": "^1.2.0",
"which": "^1.2.9"
- },
- "dependencies": {
- "semver": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ=="
- }
}
},
"dedent": {
@@ -1177,13 +1162,6 @@
"integrity": "sha1-mskb5uUvtuYkTE5UpKw+2K6OKcA=",
"requires": {
"sax": "1.1.4"
- },
- "dependencies": {
- "sax": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/sax/-/sax-1.1.4.tgz",
- "integrity": "sha1-dLbTPJrh4AFRDxeakRaFiPGu2qk="
- }
}
},
"endent": {
@@ -1197,26 +1175,33 @@
}
},
"es-abstract": {
- "version": "1.16.0",
- "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.16.0.tgz",
- "integrity": "sha512-xdQnfykZ9JMEiasTAJZJdMWCQ1Vm00NBw79/AWi7ELfZuuPCSOMDZbT9mkOfSctVtfhb+sAAzrm+j//GjjLHLg==",
+ "version": "1.16.3",
+ "resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.16.3.tgz",
+ "integrity": "sha512-WtY7Fx5LiOnSYgF5eg/1T+GONaGmpvpPdCpSnYij+U2gDTL0UPfWrhDw7b2IYb+9NQJsYpCA0wOQvZfsd6YwRw==",
"requires": {
- "es-to-primitive": "^1.2.0",
+ "es-to-primitive": "^1.2.1",
"function-bind": "^1.1.1",
"has": "^1.0.3",
- "has-symbols": "^1.0.0",
+ "has-symbols": "^1.0.1",
"is-callable": "^1.1.4",
"is-regex": "^1.0.4",
- "object-inspect": "^1.6.0",
+ "object-inspect": "^1.7.0",
"object-keys": "^1.1.1",
"string.prototype.trimleft": "^2.1.0",
"string.prototype.trimright": "^2.1.0"
+ },
+ "dependencies": {
+ "object-inspect": {
+ "version": "1.7.0",
+ "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.7.0.tgz",
+ "integrity": "sha512-a7pEHdh1xKIAgTySUGgLMx/xwDZskN1Ud6egYYN3EdRW4ZMPNEDUTF+hwy2LUC+Bl+SyLXANnwz/jyh/qutKUw=="
+ }
}
},
"es-to-primitive": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.0.tgz",
- "integrity": "sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg==",
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz",
+ "integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==",
"requires": {
"is-callable": "^1.1.4",
"is-date-object": "^1.0.1",
@@ -1288,9 +1273,9 @@
}
},
"has-symbols": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz",
- "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q="
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz",
+ "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg=="
},
"inflight": {
"version": "1.0.6",
@@ -1330,11 +1315,11 @@
}
},
"is-symbol": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.2.tgz",
- "integrity": "sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw==",
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz",
+ "integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==",
"requires": {
- "has-symbols": "^1.0.0"
+ "has-symbols": "^1.0.1"
}
},
"isexe": {
@@ -1450,13 +1435,6 @@
"base64-js": "^1.2.3",
"xmlbuilder": "^9.0.7",
"xmldom": "0.1.x"
- },
- "dependencies": {
- "xmlbuilder": {
- "version": "9.0.7",
- "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz",
- "integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0="
- }
}
},
"properties-parser": {
@@ -1493,6 +1471,11 @@
"through": "~2.3.4"
}
},
+ "sax": {
+ "version": "1.1.4",
+ "resolved": "https://registry.npmjs.org/sax/-/sax-1.1.4.tgz",
+ "integrity": "sha1-dLbTPJrh4AFRDxeakRaFiPGu2qk="
+ },
"sdp": {
"version": "1.5.4",
"resolved": "https://registry.npmjs.org/sdp/-/sdp-1.5.4.tgz",
@@ -1615,6 +1598,11 @@
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
},
+ "xmlbuilder": {
+ "version": "9.0.7",
+ "resolved": "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-9.0.7.tgz",
+ "integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0="
+ },
"xmldom": {
"version": "0.1.27",
"resolved": "https://registry.npmjs.org/xmldom/-/xmldom-0.1.27.tgz",
diff --git a/mobile/package.json b/mobile/package.json
index 4313e6e..27a0503 100644
--- a/mobile/package.json
+++ b/mobile/package.json
@@ -18,7 +18,7 @@
"cordova-browser": "^5.0.4",
"cordova-ios": "^4.5.5",
"cordova-plugin-add-swift-support": "^1.7.2",
- "cordova-plugin-background-mode": "^0.7.3",
+ "cordova-plugin-background-mode": "git+https://github.com/katzer/cordova-plugin-background-mode.git",
"cordova-plugin-battery-status": "^2.0.3",
"cordova-plugin-device": "^2.0.3",
"cordova-plugin-file": "^6.0.2",
@@ -34,14 +34,14 @@
"cordova-plugin-x-socialsharing": {
"ANDROID_SUPPORT_V4_VERSION": "24.1.1+"
},
- "cordova-plugin-background-mode": {},
"cordova-plugin-file": {},
"cordova-plugin-battery-status": {},
"cordova-plugin-qrscanner": {},
"cordova-plugin-inappbrowser": {},
"cordova-android-support-gradle-release": {
"ANDROID_SUPPORT_VERSION": "28.+"
- }
+ },
+ "cordova-plugin-background-mode": {}
},
"platforms": [
"ios",
diff --git a/src/App.vue b/src/App.vue
index 6db92c9..8d05685 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -741,21 +741,21 @@ export default {
//background mode
if (typeof (cordova.plugins.backgroundMode) !== 'undefined') {
//set defaults
- /*cordova.plugins.backgroundMode.setDefaults({
+ cordova.plugins.backgroundMode.setDefaults({
title: 'JSEcoin Mobile',
text: 'Altcoin Miner app',
silent: self.silentMode,
- });*/
+ });
//on active
cordova.plugins.backgroundMode.on('activate', () => {
console.log('[backgroundMode][activate]');
//timeout required or disable optimisation ignored when autosleep set
- //setTimeout(() => {
- // cordova.plugins.backgroundMode.disableWebViewOptimizations();
- //}, 5000);
- //cordova.plugins.backgroundMode.disableWebViewOptimizations();
+ setTimeout(() => {
+ cordova.plugins.backgroundMode.disableWebViewOptimizations();
+ }, 5000);
+ cordova.plugins.backgroundMode.disableWebViewOptimizations();
});
//on enable