try to allow background process

This commit is contained in:
Marc Wäckerlin
2015-11-20 14:05:16 +00:00
parent 4932c8f348
commit ed8f0bb759
5 changed files with 36 additions and 0 deletions

View File

@@ -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://*/*" />

View File

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