try to allow background process

php
Marc Wäckerlin 9 years ago
parent 4932c8f348
commit ed8f0bb759
  1. 17
      ChangeLog
  2. 1
      cordova/config.xml.in
  3. 1
      cordova/makefile.am
  4. 8
      html/safechat.js
  5. 9
      safechat.desktop.in

@ -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,

@ -13,6 +13,7 @@
</author>
<content src="https://safechat.ch" />
<plugin name="cordova-plugin-whitelist" version="1" />
<plugin name="de.appplant.cordova.plugin.background-mode" />
<access origin="https://safechat.ch" subdomains="true" />
<access origin="https://dev.marc.waeckerlin.org" subdomains="true" />
<allow-intent href="http://*/*" />

@ -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

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

@ -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;
Loading…
Cancel
Save