Fixed bug where badge count was not getting cleared when resuming the app on the device or the server.