diff --git a/ChangeLog b/ChangeLog index 2b43421..a88e9e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,20 @@ +2015-11-09 22:34 marc + + * html/documentation.dox, html/makefile.am: added missing doc + +2015-11-09 22:13 marc + + * doc/doxyfile.in, html/checknewuser.php, html/get.php, + html/login.php, html/pubkey.php, html/send.php: improved + documentation, better api documentation + +2015-11-09 18:04 marc + + * ChangeLog, cordova/platforms/android/AndroidManifest.xml, + cordova/platforms/android/res/xml/config.xml, doc/doxyfile.in, + html/safechat.js, makefile.am, test/settings.wt, + test/testcase.wt: minor docu fixes + 2015-11-09 15:12 marc * ChangeLog, bootstrap.sh, doc/doxyfile.in, html/makefile.am, diff --git a/cordova/config.xml.in b/cordova/config.xml.in index 663af8a..f4cbccd 100644 --- a/cordova/config.xml.in +++ b/cordova/config.xml.in @@ -13,6 +13,7 @@ + diff --git a/cordova/makefile.am b/cordova/makefile.am index 410e6e8..c7345f2 100644 --- a/cordova/makefile.am +++ b/cordova/makefile.am @@ -20,6 +20,7 @@ ${ANDROID_SRC}: chmod -R u+w "$${file}" ); \ done if [ "$$(whoami)" != "root" ]; then \ + cordova plugin add https://github.com/katzer/cordova-plugin-background-mode.git; \ cordova build --debug || cordova build --debug; \ fi diff --git a/html/safechat.js b/html/safechat.js index 4b58748..efe79b6 100644 --- a/html/safechat.js +++ b/html/safechat.js @@ -692,5 +692,13 @@ $(window.onunload = function() { // you probably don't want to leave now... alert('You are trying to leave.'); return false; }); +/// Allow Running in Background on Android +document.addEventListener('deviceready', function () { + if (cordova && cordova.plugins.backgroundMode) { + cordova.plugins.backgroundMode.enable(); + } +}, false); + +/// Start Main Loop $(start); diff --git a/safechat.desktop.in b/safechat.desktop.in new file mode 100644 index 0000000..de4bc12 --- /dev/null +++ b/safechat.desktop.in @@ -0,0 +1,9 @@ +[Desktop Entry] +Type=Application +Name=safechat +GenericName=safechat +Comment=@DESCRIPTION@ +Icon=@prefix@/share/@PACKAGE_NAME@/@PACKAGE_ICON@ +Exec=safechat %u +Terminal=false +Categories=Qt;Utility;