From 6f9e83a73b05f60c4d82ea2dc9bc72478b502301 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Fri, 30 Oct 2015 18:12:39 -0400 Subject: #59 - initial patches --- www/js/EventCtrl.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'www/js/EventCtrl.js') diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js index 76d0937a..816d25e4 100644 --- a/www/js/EventCtrl.js +++ b/www/js/EventCtrl.js @@ -837,6 +837,7 @@ angular.module('zmApp.controllers') //reset badge count + if (window.cordova && window.cordova.plugins.notification) { $cordovaBadge.set(0).then(function() { // You have permission, badge set. }, function(err) { @@ -845,6 +846,7 @@ angular.module('zmApp.controllers') }); $cordovaLocalNotification.clearAll(); + } }); -- cgit v1.2.3