Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRSim committed Dec 12, 2019
1 parent f3fda07 commit 3c38a9b
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 57 deletions.
2 changes: 1 addition & 1 deletion mobile/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@
<plugin name="cordova-plugin-x-socialsharing" spec="^5.6.2">
<variable name="ANDROID_SUPPORT_V4_VERSION" value="24.1.1+" />
</plugin>
<plugin name="cordova-plugin-background-mode" spec="^0.7.3" />
<plugin name="cordova-plugin-file" spec="^6.0.2" />
<plugin name="cordova-plugin-battery-status" spec="^2.0.3" />
<plugin name="cordova-plugin-qrscanner" spec="^2.6.2" />
<plugin name="cordova-plugin-inappbrowser" spec="^3.1.0" />
<plugin name="cordova-android-support-gradle-release" spec="^3.0.1">
<variable name="ANDROID_SUPPORT_VERSION" value="28.+" />
</plugin>
<plugin name="cordova-plugin-background-mode" spec="https://github.com/katzer/cordova-plugin-background-mode" />
<engine name="ios" spec="^4.5.5" />
<engine name="browser" spec="^5.0.4" />
<engine name="android" spec="^8.1.0" />
Expand Down
82 changes: 35 additions & 47 deletions mobile/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
12 changes: 6 additions & 6 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3c38a9b

Please sign in to comment.