diff --git a/native/push/push-handler.react.js b/native/push/push-handler.react.js --- a/native/push/push-handler.react.js +++ b/native/push/push-handler.react.js @@ -297,6 +297,7 @@ if (!this.props.loggedIn && prevProps.loggedIn) { this.clearAllNotifs(); + this.resetBadgeCount(); } if ( @@ -317,6 +318,14 @@ } } + resetBadgeCount() { + if (Platform.OS === 'ios') { + CommIOSNotifications.setBadgesCount(0); + } else if (Platform.OS === 'android') { + CommAndroidNotifications.setBadge(0); + } + } + clearAllNotifs() { if (Platform.OS === 'ios') { CommIOSNotifications.removeAllDeliveredNotifications();