From 65869bd131cc2f05a09a0a0ca360f4c514828116 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Tue, 3 May 2016 20:21:19 -0400 Subject: #237 and #238 -- updating push plugin to use new methods, still have work to do Former-commit-id: 4b0705c76abe7079bf149b18ac148264db944a88 --- www/js/EventServer.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'www/js/EventServer.js') diff --git a/www/js/EventServer.js b/www/js/EventServer.js index 77287feb..8d7fd65e 100644 --- a/www/js/EventServer.js +++ b/www/js/EventServer.js @@ -471,6 +471,17 @@ angular.module('zmApp.controllers') $rootScope.alarmCount = "0"; $rootScope.isAlarm = 0; $rootScope.tappedNotification = 1; + + if ($rootScope.platformOS == 'ios') + { + ZMDataModel.zmDebug ("iOS only: clearing background push"); + push.finish(function() { + ZMDataModel.zmDebug ("Finished background push"); + }, function() { + ZMDataModel.zmDebug ("background push error"); + }, 'push-1'); + } + } else { // this flag honors the HW mute button. Go figure -- cgit v1.2.3