diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-05-03 20:21:19 -0400 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-05-03 20:21:19 -0400 |
| commit | 65869bd131cc2f05a09a0a0ca360f4c514828116 (patch) | |
| tree | cfc5ec05b1e907360870814270188c7ea9da25d5 /www/js/EventServer.js | |
| parent | 332fcc3602d3ddcceea7410926f889377b74addd (diff) | |
#237 and #238 -- updating push plugin to use new methods, still have work to do
Former-commit-id: 4b0705c76abe7079bf149b18ac148264db944a88
Diffstat (limited to 'www/js/EventServer.js')
| -rw-r--r-- | www/js/EventServer.js | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
