try to allow background process
This commit is contained in:
17
ChangeLog
17
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
|
2015-11-09 15:12 marc
|
||||||
|
|
||||||
* ChangeLog, bootstrap.sh, doc/doxyfile.in, html/makefile.am,
|
* ChangeLog, bootstrap.sh, doc/doxyfile.in, html/makefile.am,
|
||||||
|
@@ -13,6 +13,7 @@
|
|||||||
</author>
|
</author>
|
||||||
<content src="https://safechat.ch" />
|
<content src="https://safechat.ch" />
|
||||||
<plugin name="cordova-plugin-whitelist" version="1" />
|
<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://safechat.ch" subdomains="true" />
|
||||||
<access origin="https://dev.marc.waeckerlin.org" subdomains="true" />
|
<access origin="https://dev.marc.waeckerlin.org" subdomains="true" />
|
||||||
<allow-intent href="http://*/*" />
|
<allow-intent href="http://*/*" />
|
||||||
|
@@ -20,6 +20,7 @@ ${ANDROID_SRC}:
|
|||||||
chmod -R u+w "$${file}" ); \
|
chmod -R u+w "$${file}" ); \
|
||||||
done
|
done
|
||||||
if [ "$$(whoami)" != "root" ]; then \
|
if [ "$$(whoami)" != "root" ]; then \
|
||||||
|
cordova plugin add https://github.com/katzer/cordova-plugin-background-mode.git; \
|
||||||
cordova build --debug || cordova build --debug; \
|
cordova build --debug || cordova build --debug; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@@ -692,5 +692,13 @@ $(window.onunload = function() { // you probably don't want to leave now...
|
|||||||
alert('You are trying to leave.');
|
alert('You are trying to leave.');
|
||||||
return false;
|
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);
|
$(start);
|
||||||
|
|
||||||
|
9
safechat.desktop.in
Normal file
9
safechat.desktop.in
Normal file
@@ -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;
|
Reference in New Issue
Block a user