From ea2fb69f1c02eb3a2ed5aea79db79bf59f0568c3 Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Thu, 5 May 2016 15:08:40 -0400 Subject: #237 - clear badge on start Former-commit-id: c197e09029ac66c3b325fde3f1200e66293ac4bb --- www/js/EventServer.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'www/js/EventServer.js') diff --git a/www/js/EventServer.js b/www/js/EventServer.js index 8d7fd65e..25c13fac 100644 --- a/www/js/EventServer.js +++ b/www/js/EventServer.js @@ -371,7 +371,8 @@ angular.module('zmApp.controllers') "ios": { "alert": "true", "badge": "true", - "sound": "true" + "sound": "true", + "clearBadge": "true" } } @@ -475,11 +476,9 @@ angular.module('zmApp.controllers') 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'); + push.finish(function() { + ZMDataModel.zmDebug("processing of push data is finished"); + }); } } else { -- cgit v1.2.3