From 8e76c15b8e83d04526e5b913d413224f5dd5db97 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Wed, 27 Jan 2016 07:03:27 -0500 Subject: #155 - for Android only - added exit app on background option, default on Former-commit-id: 3b67465e4358895d6d7bf3967dba9aafd5141c9a --- www/js/app.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'www/js/app.js') diff --git a/www/js/app.js b/www/js/app.js index c3cd856a..0322d456 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -956,8 +956,16 @@ angular.module('zmApp', [ ZMDataModel.zmLog("Stopping network pull..."); window.stop(); + var ld = ZMDataModel.getLogin(); + + if (ld.exitOnSleep && $rootScope.platformOS == "android") + { + ZMDataModel.zmLog("user exited app"); + ionic.Platform.exitApp(); + } + if ($rootScope.apnsToken && ld.isUseEventServer == "1") { // ZMDataModel.zmDebug("sending enable push to Event Server"); //EventServer.sendMessage('push', {type:'control',enablepush:'1'}); -- cgit v1.2.3