Skip to content

Commit

Permalink
Clear notifications if count drops to zero when app running
Browse files Browse the repository at this point in the history
  • Loading branch information
chriscant committed Jul 24, 2018
1 parent 68ee7fb commit cf983c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http/js/iznik/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ define([
if (window.mobilePush) { // CC
window.mobilePush.setApplicationIconBadgeNumber(function () { }, function () { }, unseen);
console.log("badge count set to: " + unseen);
if (unseen == 0) { window.mobilePush.clearAllNotifications(); }
}

}
Expand Down

0 comments on commit cf983c6

Please sign in to comment.